8dfbdf4aba
This patch contains the following possible cleanups: - make the following needlessly global code (always) static: - baboon.c: struct baboon - baboon.c: baboon_irq() - config.c: mac_orig_videoaddr - config.c: mac_identify() - config.c: mac_report_hardware() - config.c: mac_debug_console_write() - config.c: mac_sccb_console_write() - config.c: mac_scca_console_write() - config.c: mac_init_scc_port() - oss.c: oss_irq() - oss.c: oss_nubus_irq() - psc.c: psc_debug_dump() - psc.c: psc_dma_die_die_die() - via.c: rbv_clear - remove the unused bootparse.c - #if 0 the following unused functions: - config.c: mac_debugging_short() - config.c: mac_debugging_long() - remove the following unused code: - config.c: mac_bisize - config.c: mac_env - config.c: mac_SCC_init_done - config.c: mac_SCC_reset_done - config.c: mac_init_scca_port() - config.c: mac_init_sccb_port() Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
33 lines
812 B
C
33 lines
812 B
C
/*
|
|
* Definitions for the "Baboon" custom IC on the PowerBook 190.
|
|
*/
|
|
|
|
#define BABOON_BASE (0x50F1A000) /* same as IDE controller base */
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
struct baboon {
|
|
char pad1[208]; /* generic IDE registers, not used here */
|
|
short mb_control; /* Control register:
|
|
* bit 5 : slot 2 power control
|
|
* bit 6 : slot 1 power control
|
|
*/
|
|
char pad2[2];
|
|
short mb_status; /* (0xD4) media bay status register:
|
|
*
|
|
* bit 0: ????
|
|
* bit 1: IDE interrupt active?
|
|
* bit 2: bay status, 0 = full, 1 = empty
|
|
* bit 3: ????
|
|
*/
|
|
char pad3[2]; /* (0xD6) not used */
|
|
short mb_ifr; /* (0xD8) media bay interrupt flags register:
|
|
*
|
|
* bit 0: ????
|
|
* bit 1: IDE controller interrupt
|
|
* bit 2: media bay status change interrupt
|
|
*/
|
|
};
|
|
|
|
#endif /* __ASSEMBLY **/
|