Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cs5536_pci.h File Reference
#include <linux/types.h>
#include <linux/pci_regs.h>

Go to the source code of this file.

Macros

#define CS5536_ACC_INTR   9
 
#define CS5536_IDE_INTR   14
 
#define CS5536_USB_INTR   11
 
#define CS5536_MFGPT_INTR   5
 
#define CS5536_UART1_INTR   4
 
#define CS5536_UART2_INTR   3
 
#define PCI_BUS_CS5536   0
 
#define PCI_IDSEL_CS5536   14
 
#define CFG_PCI_VENDOR_ID(mod_dev_id, sys_vendor_id)   (((mod_dev_id) << 16) | (sys_vendor_id))
 
#define CS5536_VENDOR_ID   0x1022
 
#define CS5536_ISA_DEVICE_ID   0x2090
 
#define CS5536_IDE_DEVICE_ID   0x209a
 
#define CS5536_ACC_DEVICE_ID   0x2093
 
#define CS5536_OHCI_DEVICE_ID   0x2094
 
#define CS5536_EHCI_DEVICE_ID   0x2095
 
#define CS5536_ISA_CLASS_CODE   0x060100
 
#define CS5536_IDE_CLASS_CODE   0x010180
 
#define CS5536_ACC_CLASS_CODE   0x040100
 
#define CS5536_OHCI_CLASS_CODE   0x0C0310
 
#define CS5536_EHCI_CLASS_CODE   0x0C0320
 
#define CFG_PCI_CACHE_LINE_SIZE(header_type, latency_timer)
 
#define PCI_NONE_BIST   0x00 /* RO not implemented yet. */
 
#define PCI_BRIDGE_HEADER_TYPE   0x80 /* RO */
 
#define PCI_NORMAL_HEADER_TYPE   0x00
 
#define PCI_NORMAL_LATENCY_TIMER   0x00
 
#define PCI_NORMAL_CACHE_LINE_SIZE   0x08 /* RW */
 
#define PCI_BAR0_REG   0x10
 
#define PCI_BAR1_REG   0x14
 
#define PCI_BAR2_REG   0x18
 
#define PCI_BAR3_REG   0x1c
 
#define PCI_BAR4_REG   0x20
 
#define PCI_BAR5_REG   0x24
 
#define PCI_BAR_COUNT   6
 
#define PCI_BAR_RANGE_MASK   0xFFFFFFFF
 
#define PCI_CARDBUS_CIS_POINTER   0x00000000
 
#define CS5536_SUB_VENDOR_ID   CS5536_VENDOR_ID
 
#define CS5536_ISA_SUB_ID   CS5536_ISA_DEVICE_ID
 
#define CS5536_IDE_SUB_ID   CS5536_IDE_DEVICE_ID
 
#define CS5536_ACC_SUB_ID   CS5536_ACC_DEVICE_ID
 
#define CS5536_OHCI_SUB_ID   CS5536_OHCI_DEVICE_ID
 
#define CS5536_EHCI_SUB_ID   CS5536_EHCI_DEVICE_ID
 
#define PCI_EXPANSION_ROM_BAR   0x00000000
 
#define PCI_CAPLIST_POINTER   0x00000000
 
#define PCI_CAPLIST_USB_POINTER   0x40
 
#define CFG_PCI_INTERRUPT_LINE(pin, mod_intr)
 
#define PCI_MAX_LATENCY   0x40
 
#define PCI_MIN_GRANT   0x00
 
#define PCI_DEFAULT_PIN   0x01
 
#define PCI_UART1_INT_REG   0x50
 
#define PCI_UART2_INT_REG   0x54
 
#define PCI_ISA_FIXUP_REG   0x58
 
#define PCI_IDE_CFG_REG   0x40
 
#define CS5536_IDE_FLASH_SIGNATURE   0xDEADBEEF
 
#define PCI_IDE_DTC_REG   0x48
 
#define PCI_IDE_CAST_REG   0x4C
 
#define PCI_IDE_ETC_REG   0x50
 
#define PCI_IDE_PM_REG   0x54
 
#define PCI_IDE_INT_REG   0x60
 
#define PCI_ACC_INT_REG   0x50
 
#define PCI_OHCI_PM_REG   0x40
 
#define PCI_OHCI_INT_REG   0x50
 
#define PCI_EHCI_LEGSMIEN_REG   0x50
 
#define PCI_EHCI_LEGSMISTS_REG   0x54
 
#define PCI_EHCI_FLADJ_REG   0x60
 

Functions

void cs5536_pci_conf_write4 (int function, int reg, u32 value)
 
u32 cs5536_pci_conf_read4 (int function, int reg)
 

Macro Definition Documentation

#define CFG_PCI_CACHE_LINE_SIZE (   header_type,
  latency_timer 
)
Value:
((PCI_NONE_BIST << 24) | ((header_type) << 16) \
| ((latency_timer) << 8) | PCI_NORMAL_CACHE_LINE_SIZE);

Definition at line 66 of file cs5536_pci.h.

#define CFG_PCI_INTERRUPT_LINE (   pin,
  mod_intr 
)
Value:
((PCI_MAX_LATENCY << 24) | (PCI_MIN_GRANT << 16) | \
((pin) << 8) | (mod_intr))

Definition at line 107 of file cs5536_pci.h.

#define CFG_PCI_VENDOR_ID (   mod_dev_id,
  sys_vendor_id 
)    (((mod_dev_id) << 16) | (sys_vendor_id))

Definition at line 44 of file cs5536_pci.h.

#define CS5536_ACC_CLASS_CODE   0x040100

Definition at line 60 of file cs5536_pci.h.

#define CS5536_ACC_DEVICE_ID   0x2093

Definition at line 53 of file cs5536_pci.h.

#define CS5536_ACC_INTR   9

Definition at line 20 of file cs5536_pci.h.

#define CS5536_ACC_SUB_ID   CS5536_ACC_DEVICE_ID

Definition at line 95 of file cs5536_pci.h.

#define CS5536_EHCI_CLASS_CODE   0x0C0320

Definition at line 62 of file cs5536_pci.h.

#define CS5536_EHCI_DEVICE_ID   0x2095

Definition at line 55 of file cs5536_pci.h.

#define CS5536_EHCI_SUB_ID   CS5536_EHCI_DEVICE_ID

Definition at line 97 of file cs5536_pci.h.

#define CS5536_IDE_CLASS_CODE   0x010180

Definition at line 59 of file cs5536_pci.h.

#define CS5536_IDE_DEVICE_ID   0x209a

Definition at line 52 of file cs5536_pci.h.

#define CS5536_IDE_FLASH_SIGNATURE   0xDEADBEEF

Definition at line 128 of file cs5536_pci.h.

#define CS5536_IDE_INTR   14

Definition at line 21 of file cs5536_pci.h.

#define CS5536_IDE_SUB_ID   CS5536_IDE_DEVICE_ID

Definition at line 94 of file cs5536_pci.h.

#define CS5536_ISA_CLASS_CODE   0x060100

Definition at line 58 of file cs5536_pci.h.

#define CS5536_ISA_DEVICE_ID   0x2090

Definition at line 51 of file cs5536_pci.h.

#define CS5536_ISA_SUB_ID   CS5536_ISA_DEVICE_ID

Definition at line 93 of file cs5536_pci.h.

#define CS5536_MFGPT_INTR   5

Definition at line 23 of file cs5536_pci.h.

#define CS5536_OHCI_CLASS_CODE   0x0C0310

Definition at line 61 of file cs5536_pci.h.

#define CS5536_OHCI_DEVICE_ID   0x2094

Definition at line 54 of file cs5536_pci.h.

#define CS5536_OHCI_SUB_ID   CS5536_OHCI_DEVICE_ID

Definition at line 96 of file cs5536_pci.h.

#define CS5536_SUB_VENDOR_ID   CS5536_VENDOR_ID

Definition at line 90 of file cs5536_pci.h.

#define CS5536_UART1_INTR   4

Definition at line 24 of file cs5536_pci.h.

#define CS5536_UART2_INTR   3

Definition at line 25 of file cs5536_pci.h.

#define CS5536_USB_INTR   11

Definition at line 22 of file cs5536_pci.h.

#define CS5536_VENDOR_ID   0x1022

Definition at line 48 of file cs5536_pci.h.

#define PCI_ACC_INT_REG   0x50

Definition at line 138 of file cs5536_pci.h.

#define PCI_BAR0_REG   0x10

Definition at line 77 of file cs5536_pci.h.

#define PCI_BAR1_REG   0x14

Definition at line 78 of file cs5536_pci.h.

#define PCI_BAR2_REG   0x18

Definition at line 79 of file cs5536_pci.h.

#define PCI_BAR3_REG   0x1c

Definition at line 80 of file cs5536_pci.h.

#define PCI_BAR4_REG   0x20

Definition at line 81 of file cs5536_pci.h.

#define PCI_BAR5_REG   0x24

Definition at line 82 of file cs5536_pci.h.

#define PCI_BAR_COUNT   6

Definition at line 83 of file cs5536_pci.h.

#define PCI_BAR_RANGE_MASK   0xFFFFFFFF

Definition at line 84 of file cs5536_pci.h.

#define PCI_BRIDGE_HEADER_TYPE   0x80 /* RO */

Definition at line 71 of file cs5536_pci.h.

#define PCI_BUS_CS5536   0

Definition at line 32 of file cs5536_pci.h.

#define PCI_CAPLIST_POINTER   0x00000000

Definition at line 103 of file cs5536_pci.h.

#define PCI_CAPLIST_USB_POINTER   0x40

Definition at line 104 of file cs5536_pci.h.

#define PCI_CARDBUS_CIS_POINTER   0x00000000

Definition at line 87 of file cs5536_pci.h.

#define PCI_DEFAULT_PIN   0x01

Definition at line 113 of file cs5536_pci.h.

#define PCI_EHCI_FLADJ_REG   0x60

Definition at line 151 of file cs5536_pci.h.

#define PCI_EHCI_LEGSMIEN_REG   0x50

Definition at line 149 of file cs5536_pci.h.

#define PCI_EHCI_LEGSMISTS_REG   0x54

Definition at line 150 of file cs5536_pci.h.

#define PCI_EXPANSION_ROM_BAR   0x00000000

Definition at line 100 of file cs5536_pci.h.

#define PCI_IDE_CAST_REG   0x4C

Definition at line 130 of file cs5536_pci.h.

#define PCI_IDE_CFG_REG   0x40

Definition at line 127 of file cs5536_pci.h.

#define PCI_IDE_DTC_REG   0x48

Definition at line 129 of file cs5536_pci.h.

#define PCI_IDE_ETC_REG   0x50

Definition at line 131 of file cs5536_pci.h.

#define PCI_IDE_INT_REG   0x60

Definition at line 133 of file cs5536_pci.h.

#define PCI_IDE_PM_REG   0x54

Definition at line 132 of file cs5536_pci.h.

#define PCI_IDSEL_CS5536   14

Definition at line 33 of file cs5536_pci.h.

#define PCI_ISA_FIXUP_REG   0x58

Definition at line 122 of file cs5536_pci.h.

#define PCI_MAX_LATENCY   0x40

Definition at line 111 of file cs5536_pci.h.

#define PCI_MIN_GRANT   0x00

Definition at line 112 of file cs5536_pci.h.

#define PCI_NONE_BIST   0x00 /* RO not implemented yet. */

Definition at line 70 of file cs5536_pci.h.

#define PCI_NORMAL_CACHE_LINE_SIZE   0x08 /* RW */

Definition at line 74 of file cs5536_pci.h.

#define PCI_NORMAL_HEADER_TYPE   0x00

Definition at line 72 of file cs5536_pci.h.

#define PCI_NORMAL_LATENCY_TIMER   0x00

Definition at line 73 of file cs5536_pci.h.

#define PCI_OHCI_INT_REG   0x50

Definition at line 144 of file cs5536_pci.h.

#define PCI_OHCI_PM_REG   0x40

Definition at line 143 of file cs5536_pci.h.

#define PCI_UART1_INT_REG   0x50

Definition at line 120 of file cs5536_pci.h.

#define PCI_UART2_INT_REG   0x54

Definition at line 121 of file cs5536_pci.h.

Function Documentation

u32 cs5536_pci_conf_read4 ( int  function,
int  reg 
)

Definition at line 72 of file cs5536_pci.c.

void cs5536_pci_conf_write4 ( int  function,
int  reg,
u32  value 
)

Definition at line 58 of file cs5536_pci.c.