Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pch_phub.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/uaccess.h>
#include <linux/string.h>
#include <linux/pci.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/mutex.h>
#include <linux/if_ether.h>
#include <linux/ctype.h>
#include <linux/dmi.h>

Go to the source code of this file.

Data Structures

struct  pch_phub_reg
 

Macros

#define PHUB_STATUS   0x00 /* Status Register offset */
 
#define PHUB_CONTROL   0x04 /* Control Register offset */
 
#define PHUB_TIMEOUT   0x05 /* Time out value for Status Register */
 
#define PCH_PHUB_ROM_WRITE_ENABLE   0x01 /* Enabling for writing ROM */
 
#define PCH_PHUB_ROM_WRITE_DISABLE   0x00 /* Disabling for writing ROM */
 
#define PCH_PHUB_MAC_START_ADDR_EG20T
 
#define PCH_PHUB_MAC_START_ADDR_ML7223
 
#define PCH_PHUB_ROM_START_ADDR_EG20T
 
#define PCH_PHUB_ROM_START_ADDR_ML7213
 
#define PCH_PHUB_ROM_START_ADDR_ML7223
 
#define MAX_NUM_INT_REDUCE_CONTROL_REG   128
 
#define PCI_DEVICE_ID_PCH1_PHUB   0x8801
 
#define PCH_MINOR_NOS   1
 
#define CLKCFG_CAN_50MHZ   0x12000000
 
#define CLKCFG_CANCLK_MASK   0xFF000000
 
#define CLKCFG_UART_MASK   0xFFFFFF
 
#define CLKCFG_UART_48MHZ   (1 << 16)
 
#define CLKCFG_BAUDDIV   (2 << 20)
 
#define CLKCFG_PLL2VCO   (8 << 9)
 
#define CLKCFG_UARTCLKSEL   (1 << 18)
 
#define PCI_VENDOR_ID_ROHM   0x10db
 
#define PCI_DEVICE_ID_ROHM_ML7213_PHUB   0x801A
 
#define PCI_DEVICE_ID_ROHM_ML7223_mPHUB   0x8012 /* for Bus-m */
 
#define PCI_DEVICE_ID_ROHM_ML7223_nPHUB   0x8002 /* for Bus-n */
 
#define PCI_DEVICE_ID_ROHM_ML7831_PHUB   0x8801
 
#define PCH_WORD_ADDR_MASK   (~((1 << 2) - 1))
 
#define PCH_PHUB_ID_REG   0x0000
 
#define PCH_PHUB_QUEUE_PRI_VAL_REG   0x0004
 
#define PCH_PHUB_RC_QUEUE_MAXSIZE_REG   0x0008
 
#define PCH_PHUB_BRI_QUEUE_MAXSIZE_REG   0x000C
 
#define PCH_PHUB_COMP_RESP_TIMEOUT_REG   0x0010
 
#define PCH_PHUB_BUS_SLAVE_CONTROL_REG   0x0014
 
#define PCH_PHUB_DEADLOCK_AVOID_TYPE_REG   0x0018
 
#define PCH_PHUB_INTPIN_REG_WPERMIT_REG0   0x0020
 
#define PCH_PHUB_INTPIN_REG_WPERMIT_REG1   0x0024
 
#define PCH_PHUB_INTPIN_REG_WPERMIT_REG2   0x0028
 
#define PCH_PHUB_INTPIN_REG_WPERMIT_REG3   0x002C
 
#define PCH_PHUB_INT_REDUCE_CONTROL_REG_BASE   0x0040
 
#define CLKCFG_REG_OFFSET   0x500
 
#define FUNCSEL_REG_OFFSET   0x508
 
#define PCH_PHUB_OROM_SIZE   15360
 
#define pch_phub_suspend   NULL
 
#define pch_phub_resume   NULL
 

Functions

 MODULE_DEVICE_TABLE (pci, pch_phub_pcidev_id)
 
 module_pci_driver (pch_phub_driver)
 
 MODULE_DESCRIPTION ("Intel EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7223) PHUB")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CLKCFG_BAUDDIV   (2 << 20)

Definition at line 53 of file pch_phub.c.

#define CLKCFG_CAN_50MHZ   0x12000000

Definition at line 47 of file pch_phub.c.

#define CLKCFG_CANCLK_MASK   0xFF000000

Definition at line 48 of file pch_phub.c.

#define CLKCFG_PLL2VCO   (8 << 9)

Definition at line 54 of file pch_phub.c.

#define CLKCFG_REG_OFFSET   0x500

Definition at line 84 of file pch_phub.c.

#define CLKCFG_UART_48MHZ   (1 << 16)

Definition at line 52 of file pch_phub.c.

#define CLKCFG_UART_MASK   0xFFFFFF

Definition at line 49 of file pch_phub.c.

#define CLKCFG_UARTCLKSEL   (1 << 18)

Definition at line 55 of file pch_phub.c.

#define FUNCSEL_REG_OFFSET   0x508

Definition at line 85 of file pch_phub.c.

#define MAX_NUM_INT_REDUCE_CONTROL_REG   128

Definition at line 44 of file pch_phub.c.

#define PCH_MINOR_NOS   1

Definition at line 46 of file pch_phub.c.

#define PCH_PHUB_BRI_QUEUE_MAXSIZE_REG   0x000C

Definition at line 75 of file pch_phub.c.

#define PCH_PHUB_BUS_SLAVE_CONTROL_REG   0x0014

Definition at line 77 of file pch_phub.c.

#define PCH_PHUB_COMP_RESP_TIMEOUT_REG   0x0010

Definition at line 76 of file pch_phub.c.

#define PCH_PHUB_DEADLOCK_AVOID_TYPE_REG   0x0018

Definition at line 78 of file pch_phub.c.

#define PCH_PHUB_ID_REG   0x0000

Definition at line 72 of file pch_phub.c.

#define PCH_PHUB_INT_REDUCE_CONTROL_REG_BASE   0x0040

Definition at line 83 of file pch_phub.c.

#define PCH_PHUB_INTPIN_REG_WPERMIT_REG0   0x0020

Definition at line 79 of file pch_phub.c.

#define PCH_PHUB_INTPIN_REG_WPERMIT_REG1   0x0024

Definition at line 80 of file pch_phub.c.

#define PCH_PHUB_INTPIN_REG_WPERMIT_REG2   0x0028

Definition at line 81 of file pch_phub.c.

#define PCH_PHUB_INTPIN_REG_WPERMIT_REG3   0x002C

Definition at line 82 of file pch_phub.c.

#define PCH_PHUB_MAC_START_ADDR_EG20T
Value:
0x14 /* MAC data area start address
offset */

Definition at line 37 of file pch_phub.c.

#define PCH_PHUB_MAC_START_ADDR_ML7223
Value:
0x20C /* MAC data area start address
offset */

Definition at line 38 of file pch_phub.c.

#define PCH_PHUB_OROM_SIZE   15360

Definition at line 87 of file pch_phub.c.

#define PCH_PHUB_QUEUE_PRI_VAL_REG   0x0004

Definition at line 73 of file pch_phub.c.

#define PCH_PHUB_RC_QUEUE_MAXSIZE_REG   0x0008

Definition at line 74 of file pch_phub.c.

#define pch_phub_resume   NULL

Definition at line 867 of file pch_phub.c.

#define PCH_PHUB_ROM_START_ADDR_EG20T
Value:
0x80 /* ROM data area start address offset
(Intel EG20T PCH)*/

Definition at line 39 of file pch_phub.c.

#define PCH_PHUB_ROM_START_ADDR_ML7213
Value:
0x400 /* ROM data area start address
offset(LAPIS Semicon ML7213)
*/

Definition at line 40 of file pch_phub.c.

#define PCH_PHUB_ROM_START_ADDR_ML7223
Value:
0x400 /* ROM data area start address
offset(LAPIS Semicon ML7223)
*/

Definition at line 41 of file pch_phub.c.

#define PCH_PHUB_ROM_WRITE_DISABLE   0x00 /* Disabling for writing ROM */

Definition at line 36 of file pch_phub.c.

#define PCH_PHUB_ROM_WRITE_ENABLE   0x01 /* Enabling for writing ROM */

Definition at line 35 of file pch_phub.c.

#define pch_phub_suspend   NULL

Definition at line 866 of file pch_phub.c.

#define PCH_WORD_ADDR_MASK   (~((1 << 2) - 1))

Definition at line 69 of file pch_phub.c.

#define PCI_DEVICE_ID_PCH1_PHUB   0x8801

Definition at line 45 of file pch_phub.c.

#define PCI_DEVICE_ID_ROHM_ML7213_PHUB   0x801A

Definition at line 59 of file pch_phub.c.

#define PCI_DEVICE_ID_ROHM_ML7223_mPHUB   0x8012 /* for Bus-m */

Definition at line 62 of file pch_phub.c.

#define PCI_DEVICE_ID_ROHM_ML7223_nPHUB   0x8002 /* for Bus-n */

Definition at line 63 of file pch_phub.c.

#define PCI_DEVICE_ID_ROHM_ML7831_PHUB   0x8801

Definition at line 66 of file pch_phub.c.

#define PCI_VENDOR_ID_ROHM   0x10db

Definition at line 58 of file pch_phub.c.

#define PHUB_CONTROL   0x04 /* Control Register offset */

Definition at line 33 of file pch_phub.c.

#define PHUB_STATUS   0x00 /* Status Register offset */

Definition at line 32 of file pch_phub.c.

#define PHUB_TIMEOUT   0x05 /* Time out value for Status Register */

Definition at line 34 of file pch_phub.c.

Function Documentation

MODULE_DESCRIPTION ( "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7223) PHUB"  )
MODULE_DEVICE_TABLE ( pci  ,
pch_phub_pcidev_id   
)
MODULE_LICENSE ( "GPL"  )
module_pci_driver ( pch_phub_driver  )