72 #ifndef _DREAMCAST_DEV_MAPLE_MAPLE_H_ 73 #define _DREAMCAST_DEV_MAPLE_MAPLE_H_ 80 #define MAPLE_RESPONSE_LCDERR (-6) 81 #define MAPLE_RESPONSE_FILEERR (-5) 82 #define MAPLE_RESPONSE_AGAIN (-4) 83 #define MAPLE_RESPONSE_BADCMD (-3) 84 #define MAPLE_RESPONSE_BADFUNC (-2) 85 #define MAPLE_RESPONSE_NONE (-1) 86 #define MAPLE_COMMAND_DEVINFO 1 87 #define MAPLE_COMMAND_ALLINFO 2 88 #define MAPLE_COMMAND_RESET 3 89 #define MAPLE_COMMAND_KILL 4 90 #define MAPLE_RESPONSE_DEVINFO 5 91 #define MAPLE_RESPONSE_ALLINFO 6 92 #define MAPLE_RESPONSE_OK 7 93 #define MAPLE_RESPONSE_DATATRF 8 94 #define MAPLE_COMMAND_GETCOND 9 95 #define MAPLE_COMMAND_GETMINFO 10 96 #define MAPLE_COMMAND_BREAD 11 97 #define MAPLE_COMMAND_BWRITE 12 98 #define MAPLE_COMMAND_GETLASTERR 13 99 #define MAPLE_COMMAND_SETCOND 14 102 #define MAPLE_FN_CONTROLLER 0 103 #define MAPLE_FN_MEMCARD 1 104 #define MAPLE_FN_LCD 2 105 #define MAPLE_FN_CLOCK 3 106 #define MAPLE_FN_MICROPHONE 4 107 #define MAPLE_FN_ARGUN 5 108 #define MAPLE_FN_KEYBOARD 6 109 #define MAPLE_FN_LIGHTGUN 7 110 #define MAPLE_FN_PURUPURU 8 111 #define MAPLE_FN_MOUSE 9 113 #define MAPLE_FUNC(fn) (1 << (fn)) 126 #define MAPLE_CONN_TOP 0 127 #define MAPLE_CONN_BOTTOM 1 134 #define MAPLE_FLAG_PERIODIC 1 135 #define MAPLE_FLAG_CMD_PERIODIC_TIMING 2 141 extern void maple_set_callback(
struct device *,
struct maple_unit *,
int,
144 extern void maple_enable_unit_ping(
struct device *,
struct maple_unit *,
146 extern void maple_enable_periodic(
struct device *,
struct maple_unit *,
148 extern void maple_command(
struct device *,
struct maple_unit *,
151 extern uint32_t maple_get_function_data(
struct maple_devinfo *,
int);
152 extern void maple_run_polling(
struct device *);
153 extern int maple_unit_ioctl(
struct device *,
struct maple_unit *,
154 u_long, caddr_t,
int,
struct lwp *);
uint32_t di_function_data[3]
uint8_t di_connector_direction
uint16_t di_standby_power
char di_product_license[60]