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

Go to the source code of this file.

Data Structures

struct  via_isa_bridge
 
struct  via82cxxx_dev
 

Macros

#define DRV_NAME   "via82cxxx"
 
#define VIA_IDE_ENABLE   0x40
 
#define VIA_IDE_CONFIG   0x41
 
#define VIA_FIFO_CONFIG   0x43
 
#define VIA_MISC_1   0x44
 
#define VIA_MISC_2   0x45
 
#define VIA_MISC_3   0x46
 
#define VIA_DRIVE_TIMING   0x48
 
#define VIA_8BIT_TIMING   0x4e
 
#define VIA_ADDRESS_SETUP   0x4c
 
#define VIA_UDMA_TIMING   0x50
 
#define VIA_BAD_PREQ   0x01 /* Crashes if PREQ# till DDACK# set */
 
#define VIA_BAD_CLK66   0x02 /* 66 MHz clock doesn't work correctly */
 
#define VIA_SET_FIFO   0x04 /* Needs to have FIFO split set */
 
#define VIA_NO_UNMASK   0x08 /* Doesn't work with IRQ unmasking on */
 
#define VIA_BAD_ID   0x10 /* Has wrong vendor ID (0x1107) */
 
#define VIA_BAD_AST   0x20 /* Don't touch Address Setup Timing */
 
#define VIA_SATA_PATA   0x80 /* SATA/PATA combined configuration */
 

Enumerations

enum  { VIA_IDFLAG_SINGLE = (1 << 1) }
 

Functions

 MODULE_DEVICE_TABLE (pci, via_pci_tbl)
 
 module_init (via_ide_init)
 
 module_exit (via_ide_exit)
 
 MODULE_AUTHOR ("Vojtech Pavlik, Bartlomiej Zolnierkiewicz, Michel Aubry, Jeff Garzik, Andre Hedrick")
 
 MODULE_DESCRIPTION ("PCI driver module for VIA IDE")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRV_NAME   "via82cxxx"

Definition at line 39 of file via82cxxx.c.

#define VIA_8BIT_TIMING   0x4e

Definition at line 48 of file via82cxxx.c.

#define VIA_ADDRESS_SETUP   0x4c

Definition at line 49 of file via82cxxx.c.

#define VIA_BAD_AST   0x20 /* Don't touch Address Setup Timing */

Definition at line 57 of file via82cxxx.c.

#define VIA_BAD_CLK66   0x02 /* 66 MHz clock doesn't work correctly */

Definition at line 53 of file via82cxxx.c.

#define VIA_BAD_ID   0x10 /* Has wrong vendor ID (0x1107) */

Definition at line 56 of file via82cxxx.c.

#define VIA_BAD_PREQ   0x01 /* Crashes if PREQ# till DDACK# set */

Definition at line 52 of file via82cxxx.c.

#define VIA_DRIVE_TIMING   0x48

Definition at line 47 of file via82cxxx.c.

#define VIA_FIFO_CONFIG   0x43

Definition at line 43 of file via82cxxx.c.

#define VIA_IDE_CONFIG   0x41

Definition at line 42 of file via82cxxx.c.

#define VIA_IDE_ENABLE   0x40

Definition at line 41 of file via82cxxx.c.

#define VIA_MISC_1   0x44

Definition at line 44 of file via82cxxx.c.

#define VIA_MISC_2   0x45

Definition at line 45 of file via82cxxx.c.

#define VIA_MISC_3   0x46

Definition at line 46 of file via82cxxx.c.

#define VIA_NO_UNMASK   0x08 /* Doesn't work with IRQ unmasking on */

Definition at line 55 of file via82cxxx.c.

#define VIA_SATA_PATA   0x80 /* SATA/PATA combined configuration */

Definition at line 58 of file via82cxxx.c.

#define VIA_SET_FIFO   0x04 /* Needs to have FIFO split set */

Definition at line 54 of file via82cxxx.c.

#define VIA_UDMA_TIMING   0x50

Definition at line 50 of file via82cxxx.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
VIA_IDFLAG_SINGLE 

Definition at line 60 of file via82cxxx.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech  Pavlik,
Bartlomiej  Zolnierkiewicz,
Michel  Aubry,
Jeff  Garzik,
Andre Hedrick"   
)
MODULE_DESCRIPTION ( "PCI driver module for VIA IDE )
MODULE_DEVICE_TABLE ( pci  ,
via_pci_tbl   
)
module_exit ( via_ide_exit  )
module_init ( via_ide_init  )
MODULE_LICENSE ( "GPL"  )