Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
macide.c File Reference
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/blkdev.h>
#include <linux/delay.h>
#include <linux/ide.h>
#include <linux/module.h>
#include <asm/macintosh.h>
#include <asm/macints.h>
#include <asm/mac_baboon.h>

Go to the source code of this file.


#define IDE_BASE   0x50F1A000 /* Base address of IDE controller */
#define IDE_CONTROL   0x38 /* control/altstatus */
#define IDE_IFR


int macide_test_irq (ide_hwif_t *hwif)
 module_init (macide_init)


volatile unsigned charide_ifr = (unsigned char *) (IDE_BASE + IDE_IFR)

Macro Definition Documentation

#define IDE_BASE   0x50F1A000 /* Base address of IDE controller */

Definition at line 26 of file macide.c.

#define IDE_CONTROL   0x38 /* control/altstatus */

Definition at line 33 of file macide.c.

#define IDE_IFR
0x101 /* (0x101) IDE interrupt flags on Quadra:
* Bit 0+1: some interrupt flags
* Bit 2+3: some interrupt enable
* Bit 4: ??
* Bit 5: IDE interrupt flag (any hwif)
* Bit 6: maybe IDE interrupt enable (any hwif) ??
* Bit 7: Any interrupt condition

Definition at line 45 of file macide.c.

Function Documentation

int macide_test_irq ( ide_hwif_t hwif)

Definition at line 49 of file macide.c.

module_init ( macide_init  )

Variable Documentation

volatile unsigned char* ide_ifr = (unsigned char *) (IDE_BASE + IDE_IFR)

Definition at line 47 of file macide.c.