Search
lxdream.org :: lxdream/src/maple/maple.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/maple/maple.h
changeset 1:eea311cfd33e
next2:42349f6ea216
author nkeynes
date Sat Mar 13 00:03:32 2004 +0000 (15 years ago)
permissions -rw-r--r--
last change This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/maple/maple.h Sat Mar 13 00:03:32 2004 +0000
1.3 @@ -0,0 +1,46 @@
1.4 +/**
1.5 + * Maple bus routines
1.6 + */
1.7 +#ifndef dream_maple_H
1.8 +#define dream_maple_H 1
1.9 +
1.10 +#define MAPLE_CMD_INFO 1 /* Request device information */
1.11 +#define MAPLE_CMD_EXT_INFO 2 /* Request extended information */
1.12 +#define MAPLE_CMD_RESET 3 /* Reset device */
1.13 +#define MAPLE_CMD_SHUTDOWN 4 /* Shutdown device */
1.14 +#define MAPLE_CMD_GET_COND 9 /* Get condition */
1.15 +#define MAPLE_CMD_MEM_INFO 10 /* Get memory information */
1.16 +#define MAPLE_CMD_BLOCK_READ 11 /* Block read */
1.17 +#define MAPLE_CMD_BLOCK_WRITE 12 /* Block write */
1.18 +#define MAPLE_CMD_SET_COND 14 /* Set condition */
1.19 +#define MAPLE_RESP_INFO 5 /* Device information response */
1.20 +#define MAPLE_RESP_EXT_INFO 6 /* Extended device information response */
1.21 +#define MAPLE_RESP_ACK 7 /* Acknowledge command */
1.22 +#define MAPLE_RESP_DATA 8 /* Bytes read */
1.23 +#define MAPLE_ERR_NO_RESPONSE -1 /* Device did not respond */
1.24 +#define MAPLE_ERR_FUNC_UNSUP -2 /* Function code unsupported */
1.25 +#define MAPLE_ERR_CMD_UNKNOWN -3 /* Command code unknown */
1.26 +#define MAPLE_ERR_RETRY -4 /* Retry command */
1.27 +#define MAPLE_ERR_FILE -5 /* File error? */
1.28 +
1.29 +#define MAPLE_FUNC_CONTROLLER 0x001
1.30 +#define MAPLE_FUNC_MEMORY 0x002
1.31 +#define MAPLE_FUNC_LCD 0x004
1.32 +#define MAPLE_FUNC_CLOCK 0x008
1.33 +#define MAPLE_FUNC_MICROPHONE 0x010
1.34 +#define MAPLE_FUNC_AR_GUN 0x020
1.35 +#define MAPLE_FUNC_KEYBOARD 0x040
1.36 +#define MAPLE_FUNC_LIGHT_GUN 0x080
1.37 +#define MAPLE_FUNC_PURU_PURU 0x100
1.38 +#define MAPLE_FUNC_MOUSE 0x200
1.39 +
1.40 +void maple_handle_buffer( uint32_t buffer );
1.41 +
1.42 +
1.43 +struct maple_device_t {
1.44 +
1.45 +
1.46 +};
1.47 +
1.48 +
1.49 +#endif /* !dream_maple_H */
.