KallistiOS  ##version##
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Fields
maple_device Struct Reference

One maple device. More...

#include <dc/maple.h>

Data Fields

int valid
 Is this a valid device? More...
 
int port
 Maple bus port connected to. More...
 
int unit
 Unit number, off of the port. More...
 
maple_devinfo_t info
 Device info struct. More...
 
int dev_mask
 Device-present mask for unit 0's. More...
 
maple_frame_t frame
 One rx/tx frame. More...
 
struct maple_driverdrv
 Driver which handles this device. More...
 
volatile int status_valid
 Have we got our first status update? More...
 
uint8 status [1024]
 Status buffer (for pollable devices) More...
 

Detailed Description

One maple device.

Note that we duplicate the port/unit info which is normally somewhat implicit so that we can pass around a pointer to a particular device struct.

Field Documentation

int maple_device::dev_mask

Device-present mask for unit 0's.

struct maple_driver* maple_device::drv

Driver which handles this device.

maple_frame_t maple_device::frame

One rx/tx frame.

maple_devinfo_t maple_device::info

Device info struct.

int maple_device::port

Maple bus port connected to.

uint8 maple_device::status[1024]

Status buffer (for pollable devices)

volatile int maple_device::status_valid

Have we got our first status update?

int maple_device::unit

Unit number, off of the port.

int maple_device::valid

Is this a valid device?


The documentation for this struct was generated from the following file: