src/mame/drivers/ghosteo.c
| r13783 | r13784 | |
| 114 | 114 | static const UINT8 security_data[] = { 0x01, 0xC4, 0xFF, 0x22 }; |
| 115 | 115 | |
| 116 | 116 | |
| 117 | | static UINT32 s3c2410_gpio_port_r( device_t *device, int port) |
| 117 | static UINT32 s3c2410_gpio_port_r( device_t *device, int port, UINT32 mask) |
| 118 | 118 | { |
| 119 | 119 | ghosteo_state *state = device->machine().driver_data<ghosteo_state>(); |
| 120 | 120 | UINT32 data = state->m_bballoon_port[port]; |
| r13783 | r13784 | |
| 135 | 135 | return data; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | | static void s3c2410_gpio_port_w( device_t *device, int port, UINT32 data) |
| 138 | static void s3c2410_gpio_port_w( device_t *device, int port, UINT32 data, UINT32 mask) |
| 139 | 139 | { |
| 140 | 140 | ghosteo_state *state = device->machine().driver_data<ghosteo_state>(); |
| 141 | 141 | UINT32 old_value = state->m_bballoon_port[port]; |
| r13783 | r13784 | |
| 391 | 391 | |
| 392 | 392 | static const s3c2410_interface bballoon_s3c2410_intf = |
| 393 | 393 | { |
| 394 | // CORE (pin read / pin write) |
| 395 | { NULL, NULL }, |
| 394 | 396 | // GPIO (port read / port write) |
| 395 | 397 | { s3c2410_gpio_port_r, s3c2410_gpio_port_w }, |
| 396 | 398 | // I2C (scl write / sda read / sda write) |
| r13783 | r13784 | |
| 400 | 402 | // I2S (data write) |
| 401 | 403 | { NULL }, |
| 402 | 404 | // NAND (command write, address write, data read, data write) |
| 403 | | { s3c2410_nand_command_w, s3c2410_nand_address_w, s3c2410_nand_data_r, s3c2410_nand_data_w } |
| 405 | { s3c2410_nand_command_w, s3c2410_nand_address_w, s3c2410_nand_data_r, s3c2410_nand_data_w }, |
| 406 | // LCD (flags) |
| 407 | { 0 } |
| 404 | 408 | }; |
| 405 | 409 | |
| 406 | 410 | static const i2cmem_interface i2cmem_interface = |