KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
maple_device_t Struct Reference

One maple device. More...

#include <dc/maple.h>

Data Fields

int port
 Maple bus port connected to.
 
int unit
 Unit number, off of the port.
 
maple_devinfo_t info
 Device info struct.
 
maple_frame_t frame
 One rx/tx frame.
 
struct maple_driver * drv
 Driver which handles this device.
 
uint8 probe_mask
 Mask of sub-devices left to probe.
 
uint8 dev_mask
 Device-present mask for unit 0's.
 
volatile uint8 status_valid
 Have we got our first status update?
 
uint32 status []
 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

◆ dev_mask

uint8 maple_device_t::dev_mask

Device-present mask for unit 0's.

◆ drv

struct maple_driver* maple_device_t::drv

Driver which handles this device.

◆ frame

maple_frame_t maple_device_t::frame

One rx/tx frame.

◆ info

maple_devinfo_t maple_device_t::info

Device info struct.

◆ port

int maple_device_t::port

Maple bus port connected to.

◆ probe_mask

uint8 maple_device_t::probe_mask

Mask of sub-devices left to probe.

◆ status

uint32 maple_device_t::status[]

Status buffer (for pollable devices)

◆ status_valid

volatile uint8 maple_device_t::status_valid

Have we got our first status update?

◆ unit

int maple_device_t::unit

Unit number, off of the port.


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