summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/video/tlc34076.h
blob: 4581b4f5d4e1f637875c6ea9ad78d31659627116 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/***************************************************************************

    tlc34076.h

    Basic implementation of the TLC34076 palette chip and similar
    compatible chips.

***************************************************************************/

#define TLC34076_6_BIT		0
#define TLC34076_8_BIT		1

const pen_t *tlc34076_get_pens(device_t *device);


/***************************************************************************
    TYPE DEFINITIONS
***************************************************************************/

typedef struct _tlc34076_config tlc34076_config;
struct _tlc34076_config
{
	int res_sel;
};

extern const tlc34076_config tlc34076_6_bit_intf;

DECLARE_LEGACY_DEVICE(TLC34076, tlc34076);


/***************************************************************************
    DEVICE CONFIGURATION MACROS
***************************************************************************/

#define MCFG_TLC34076_ADD(_tag, _config) \
	MCFG_DEVICE_ADD(_tag, TLC34076, 0) \
	MCFG_DEVICE_CONFIG(_config)


/***************************************************************************
    DEVICE I/O FUNCTIONS
***************************************************************************/

WRITE8_DEVICE_HANDLER( tlc34076_w );
READ8_DEVICE_HANDLER( tlc34076_r );