- Alan Cox: synch. PA-RISC arch and bitops cleanups
[davej-history.git] / include / asm-parisc / hil.h
blob9112f9bf5c612b90d081281c931849fa5154aa04
1 #ifndef _ASM_HIL_H
2 #define _ASM_HIL_H
4 /*
5 * linux/asm-parisc/hil.h
7 * (c) 1999 Matthew Wilcox
8 */
10 extern unsigned long hil_base; /* declared in drivers/gsc/hil.c */
11 extern unsigned int hil_irq;
13 #define HILBASE hil_base /* 0xf0821000 (old) or 0xf0201000 (new) */
14 #define HIL_DATA 0x800
15 #define HIL_CMD 0x801
17 #define HIL_IRQ hil_irq
19 #define hil_busy() (gsc_readb(HILBASE + HIL_CMD) & HIL_BUSY)
20 #define hil_data_available() (gsc_readb(HILBASE + HIL_CMD) & HIL_DATA_RDY)
21 #define hil_status() (gsc_readb(HILBASE + HIL_CMD))
22 #define hil_command(x) do { gsc_writeb((x), HILBASE + HIL_CMD); } while (0)
23 #define hil_read_data() (gsc_readb(HILBASE + HIL_DATA))
24 #define hil_write_data(x) do { gsc_writeb((x), HILBASE + HIL_DATA); } while (0)
26 #endif