Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
amd74xx.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/ide.h>

Go to the source code of this file.

Macros

#define DRV_NAME   "amd74xx"
 
#define IDE_HFLAGS_AMD
 
#define DECLARE_AMD_DEV(swdma, udma)
 
#define DECLARE_NV_DEV(udma)
 

Enumerations

enum  {
  AMD_IDE_CONFIG = 0x41, AMD_CABLE_DETECT = 0x42, AMD_DRIVE_TIMING = 0x48, AMD_8BIT_TIMING = 0x4e,
  AMD_ADDRESS_SETUP = 0x4c, AMD_UDMA_TIMING = 0x50
}
 

Functions

 MODULE_DEVICE_TABLE (pci, amd74xx_pci_tbl)
 
 module_init (amd74xx_ide_init)
 
 module_exit (amd74xx_ide_exit)
 
 MODULE_AUTHOR ("Vojtech Pavlik, Bartlomiej Zolnierkiewicz")
 
 MODULE_DESCRIPTION ("AMD PCI IDE driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DECLARE_AMD_DEV (   swdma,
  udma 
)
Value:
{ \
.name = DRV_NAME, \
.init_chipset = init_chipset_amd74xx, \
.enablebits = {{0x40,0x02,0x02}, {0x40,0x01,0x01}}, \
.port_ops = &amd_port_ops, \
.host_flags = IDE_HFLAGS_AMD, \
.pio_mask = ATA_PIO5, \
.swdma_mask = swdma, \
.mwdma_mask = ATA_MWDMA2, \
.udma_mask = udma, \
}

Definition at line 200 of file amd74xx.c.

#define DECLARE_NV_DEV (   udma)
Value:
{ \
.name = DRV_NAME, \
.init_chipset = init_chipset_amd74xx, \
.enablebits = {{0x50,0x02,0x02}, {0x50,0x01,0x01}}, \
.port_ops = &amd_port_ops, \
.host_flags = IDE_HFLAGS_AMD, \
.pio_mask = ATA_PIO5, \
.swdma_mask = ATA_SWDMA2, \
.mwdma_mask = ATA_MWDMA2, \
.udma_mask = udma, \
}

Definition at line 213 of file amd74xx.c.

#define DRV_NAME   "amd74xx"

Definition at line 24 of file amd74xx.c.

#define IDE_HFLAGS_AMD
Value:
IDE_HFLAG_POST_SET_MODE | \
IDE_HFLAG_IO_32BIT | \
IDE_HFLAG_UNMASK_IRQS)

Definition at line 194 of file amd74xx.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
AMD_IDE_CONFIG 
AMD_CABLE_DETECT 
AMD_DRIVE_TIMING 
AMD_8BIT_TIMING 
AMD_ADDRESS_SETUP 
AMD_UDMA_TIMING 

Definition at line 26 of file amd74xx.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech  Pavlik,
Bartlomiej Zolnierkiewicz"   
)
MODULE_DESCRIPTION ( "AMD PCI IDE driver )
MODULE_DEVICE_TABLE ( pci  ,
amd74xx_pci_tbl   
)
module_exit ( amd74xx_ide_exit  )
module_init ( amd74xx_ide_init  )
MODULE_LICENSE ( "GPL"  )