Revision b1d8e52e hw/tc58128.c
b/hw/tc58128.c | ||
---|---|---|
58 | 58 |
} |
59 | 59 |
} |
60 | 60 |
|
61 |
void handle_command(tc58128_dev * dev, uint8_t command) |
|
61 |
static void handle_command(tc58128_dev * dev, uint8_t command)
|
|
62 | 62 |
{ |
63 | 63 |
switch (command) { |
64 | 64 |
case 0xff: |
... | ... | |
86 | 86 |
} |
87 | 87 |
} |
88 | 88 |
|
89 |
void handle_address(tc58128_dev * dev, uint8_t data) |
|
89 |
static void handle_address(tc58128_dev * dev, uint8_t data)
|
|
90 | 90 |
{ |
91 | 91 |
switch (dev->state) { |
92 | 92 |
case READ1: |
... | ... | |
119 | 119 |
} |
120 | 120 |
} |
121 | 121 |
|
122 |
uint8_t handle_read(tc58128_dev * dev) |
|
122 |
static uint8_t handle_read(tc58128_dev * dev)
|
|
123 | 123 |
{ |
124 | 124 |
#if 0 |
125 | 125 |
if (dev->address % 0x100000 == 0) |
... | ... | |
131 | 131 |
/* We never mark the device as busy, so interrupts cannot be triggered |
132 | 132 |
XXXXX */ |
133 | 133 |
|
134 |
int tc58128_cb(uint16_t porta, uint16_t portb, |
|
135 |
uint16_t * periph_pdtra, uint16_t * periph_portadir,
|
|
136 |
uint16_t * periph_pdtrb, uint16_t * periph_portbdir)
|
|
134 |
static int tc58128_cb(uint16_t porta, uint16_t portb,
|
|
135 |
uint16_t * periph_pdtra, uint16_t * periph_portadir,
|
|
136 |
uint16_t * periph_pdtrb, uint16_t * periph_portbdir)
|
|
137 | 137 |
{ |
138 | 138 |
int dev; |
139 | 139 |
|
Also available in: Unified diff