|
15 | 15 |
|
16 | 16 | //***************************************************************************
|
17 | 17 |
|
18 |
| -// 60772 Commands |
19 |
| - |
20 |
| -#define ACCESS_REG 0x00 |
21 |
| -#define ACCESS_PORT 0x40 |
22 |
| - |
23 |
| -#define ACCESS_READ 0x00 |
24 |
| -#define ACCESS_WRITE 0x20 |
25 |
| - |
26 |
| -// 60772 Command Prefix |
27 |
| - |
28 |
| -#define CMD_PREFIX_SET 0xe0 // Special command that modifies the next command's operation |
29 |
| -#define CMD_PREFIX_RESET 0xc0 // Resets current cmd modifier reg bits |
30 |
| - #define PREFIX_IO16 0x01 // perform 16-bit wide I/O |
31 |
| - #define PREFIX_FASTWR 0x04 // enable PPC mode fast-write |
32 |
| - #define PREFIX_BLK 0x08 // enable block transfer mode |
33 |
| - |
34 |
| -// 60772 Registers |
35 |
| - |
36 |
| -#define REG_STATUS 0x00 // status register |
37 |
| - #define STATUS_IRQA 0x01 // Peripheral IRQA line |
38 |
| - #define STATUS_EEPROM_DO 0x40 // Serial EEPROM data bit |
39 |
| -#define REG_VERSION 0x01 // PPC version register (read) |
40 |
| -#define REG_HWCFG 0x02 // Hardware Config register |
41 |
| -#define REG_RAMSIZE 0x03 // Size of RAM Buffer |
42 |
| - #define RAMSIZE_128K 0x02 |
43 |
| -#define REG_EEPROM 0x06 // EEPROM control register |
44 |
| - #define EEPROM_SK 0x01 // eeprom SK bit |
45 |
| - #define EEPROM_DI 0x02 // eeprom DI bit |
46 |
| - #define EEPROM_CS 0x04 // eeprom CS bit |
47 |
| - #define EEPROM_EN 0x08 // eeprom output enable |
48 |
| -#define REG_BLKSIZE 0x08 // Block transfer len (24 bit) |
49 |
| - |
50 |
| -//*************************************************************************** |
51 |
| - |
52 |
| -// ppc_flags |
53 |
| - |
54 |
| -#define fifo_wait 0x10 |
55 |
| - |
56 |
| -//*************************************************************************** |
57 |
| - |
58 |
| -// DONT CHANGE THESE LEST YOU BREAK EVERYTHING - BIT FIELD DEPENDENCIES |
59 |
| - |
60 |
| -#define PPCMODE_UNI_SW 0 |
61 |
| -#define PPCMODE_UNI_FW 1 |
62 |
| -#define PPCMODE_BI_SW 2 |
63 |
| -#define PPCMODE_BI_FW 3 |
64 |
| -#define PPCMODE_EPP_BYTE 4 |
65 |
| -#define PPCMODE_EPP_WORD 5 |
66 |
| -#define PPCMODE_EPP_DWORD 6 |
67 |
| - |
68 |
| -//*************************************************************************** |
69 |
| - |
70 |
| -int mode_map[] = { PPCMODE_UNI_FW, PPCMODE_BI_FW, PPCMODE_EPP_BYTE, |
71 |
| - PPCMODE_EPP_WORD, PPCMODE_EPP_DWORD }; |
0 commit comments