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

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: