Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
piix4.h File Reference

Go to the source code of this file.

Macros

#define PIIX_PM_START   0x0F80
 
#define SIO_GPIO_START   0x0FC0
 
#define SIO_PM_START   0x0FC8
 
#define PMBASE   PIIX_PM_START
 
#define GPIREG0   (PMBASE+0x30)
 
#define GPIREG(x)   (GPIREG0+((x)/8))
 
#define GPIBIT(x)   (1 << ((x)%8))
 
#define PIIX_GPI_BD_ID1   18
 
#define PIIX_GPI_BD_ID2   19
 
#define PIIX_GPI_BD_ID3   20
 
#define PIIX_GPI_BD_ID4   21
 
#define PIIX_GPI_BD_REG   GPIREG(PIIX_GPI_BD_ID1)
 
#define PIIX_GPI_BD_MASK
 
#define PIIX_GPI_BD_SHIFT   (PIIX_GPI_BD_ID1 % 8)
 
#define SIO_INDEX   0x2e
 
#define SIO_DATA   0x2f
 
#define SIO_DEV_SEL   0x7
 
#define SIO_DEV_ENB   0x30
 
#define SIO_DEV_MSB   0x60
 
#define SIO_DEV_LSB   0x61
 
#define SIO_GP_DEV   0x7
 
#define SIO_GP_BASE   SIO_GPIO_START
 
#define SIO_GP_MSB   (SIO_GP_BASE>>8)
 
#define SIO_GP_LSB   (SIO_GP_BASE&0xff)
 
#define SIO_GP_DATA1   (SIO_GP_BASE+0)
 
#define SIO_PM_DEV   0x8
 
#define SIO_PM_BASE   SIO_PM_START
 
#define SIO_PM_MSB   (SIO_PM_BASE>>8)
 
#define SIO_PM_LSB   (SIO_PM_BASE&0xff)
 
#define SIO_PM_INDEX   (SIO_PM_BASE+0)
 
#define SIO_PM_DATA   (SIO_PM_BASE+1)
 
#define SIO_PM_FER2   0x1
 
#define SIO_PM_GP_EN   0x80
 
#define SPECIAL_DEV   0xff
 
#define SPECIAL_REG   0x00
 
#define PIIX_SPECIAL_STOP   0x00120002
 
#define PIIX4_RESET_PORT   0xcf9
 
#define PIIX4_RESET_VAL   0x6
 
#define PMSTS_PORT   0xf80
 
#define PMEN_PORT   0xf82
 
#define PMCNTRL_PORT   0xf84
 
#define PM_SUSPEND_ENABLE   0x2000
 
#define PM_STS_RSM   (1<<15)
 
#define PM_STS_PWRBTNOR   (1<<11)
 
#define PM_STS_RTC   (1<<10)
 
#define PM_STS_PWRBTN   (1<<8)
 
#define PM_STS_GBL   (1<<5)
 
#define PM_STS_BM   (1<<4)
 
#define PM_STS_TMROF   (1<<0)
 
#define PIIX_GPIREG0   (0xf80 + 0x30)
 
#define PIIX_GPI_STPCLK   0x4
 

Macro Definition Documentation

#define GPIBIT (   x)    (1 << ((x)%8))

Definition at line 17 of file piix4.h.

#define GPIREG (   x)    (GPIREG0+((x)/8))

Definition at line 16 of file piix4.h.

#define GPIREG0   (PMBASE+0x30)

Definition at line 15 of file piix4.h.

#define PIIX4_RESET_PORT   0xcf9

Definition at line 76 of file piix4.h.

#define PIIX4_RESET_VAL   0x6

Definition at line 77 of file piix4.h.

#define PIIX_GPI_BD_ID1   18

Definition at line 19 of file piix4.h.

#define PIIX_GPI_BD_ID2   19

Definition at line 20 of file piix4.h.

#define PIIX_GPI_BD_ID3   20

Definition at line 21 of file piix4.h.

#define PIIX_GPI_BD_ID4   21

Definition at line 22 of file piix4.h.

#define PIIX_GPI_BD_MASK
Value:
GPIBIT(PIIX_GPI_BD_ID2) | \
GPIBIT(PIIX_GPI_BD_ID3) | \
GPIBIT(PIIX_GPI_BD_ID4) )

Definition at line 24 of file piix4.h.

#define PIIX_GPI_BD_REG   GPIREG(PIIX_GPI_BD_ID1)

Definition at line 23 of file piix4.h.

#define PIIX_GPI_BD_SHIFT   (PIIX_GPI_BD_ID1 % 8)

Definition at line 29 of file piix4.h.

#define PIIX_GPI_STPCLK   0x4

Definition at line 105 of file piix4.h.

#define PIIX_GPIREG0   (0xf80 + 0x30)

Definition at line 100 of file piix4.h.

#define PIIX_PM_START   0x0F80

Definition at line 8 of file piix4.h.

#define PIIX_SPECIAL_STOP   0x00120002

Definition at line 74 of file piix4.h.

#define PM_STS_BM   (1<<4)

Definition at line 94 of file piix4.h.

#define PM_STS_GBL   (1<<5)

Definition at line 93 of file piix4.h.

#define PM_STS_PWRBTN   (1<<8)

Definition at line 92 of file piix4.h.

#define PM_STS_PWRBTNOR   (1<<11)

Definition at line 90 of file piix4.h.

#define PM_STS_RSM   (1<<15)

Definition at line 89 of file piix4.h.

#define PM_STS_RTC   (1<<10)

Definition at line 91 of file piix4.h.

#define PM_STS_TMROF   (1<<0)

Definition at line 95 of file piix4.h.

#define PM_SUSPEND_ENABLE   0x2000

Definition at line 83 of file piix4.h.

#define PMBASE   PIIX_PM_START

Definition at line 14 of file piix4.h.

#define PMCNTRL_PORT   0xf84

Definition at line 81 of file piix4.h.

#define PMEN_PORT   0xf82

Definition at line 80 of file piix4.h.

#define PMSTS_PORT   0xf80

Definition at line 79 of file piix4.h.

#define SIO_DATA   0x2f

Definition at line 32 of file piix4.h.

#define SIO_DEV_ENB   0x30

Definition at line 35 of file piix4.h.

#define SIO_DEV_LSB   0x61

Definition at line 37 of file piix4.h.

#define SIO_DEV_MSB   0x60

Definition at line 36 of file piix4.h.

#define SIO_DEV_SEL   0x7

Definition at line 34 of file piix4.h.

#define SIO_GP_BASE   SIO_GPIO_START

Definition at line 41 of file piix4.h.

#define SIO_GP_DATA1   (SIO_GP_BASE+0)

Definition at line 45 of file piix4.h.

#define SIO_GP_DEV   0x7

Definition at line 39 of file piix4.h.

#define SIO_GP_LSB   (SIO_GP_BASE&0xff)

Definition at line 43 of file piix4.h.

#define SIO_GP_MSB   (SIO_GP_BASE>>8)

Definition at line 42 of file piix4.h.

#define SIO_GPIO_START   0x0FC0

Definition at line 10 of file piix4.h.

#define SIO_INDEX   0x2e

Definition at line 31 of file piix4.h.

#define SIO_PM_BASE   SIO_PM_START

Definition at line 49 of file piix4.h.

#define SIO_PM_DATA   (SIO_PM_BASE+1)

Definition at line 53 of file piix4.h.

#define SIO_PM_DEV   0x8

Definition at line 47 of file piix4.h.

#define SIO_PM_FER2   0x1

Definition at line 55 of file piix4.h.

#define SIO_PM_GP_EN   0x80

Definition at line 57 of file piix4.h.

#define SIO_PM_INDEX   (SIO_PM_BASE+0)

Definition at line 52 of file piix4.h.

#define SIO_PM_LSB   (SIO_PM_BASE&0xff)

Definition at line 51 of file piix4.h.

#define SIO_PM_MSB   (SIO_PM_BASE>>8)

Definition at line 50 of file piix4.h.

#define SIO_PM_START   0x0FC8

Definition at line 12 of file piix4.h.

#define SPECIAL_DEV   0xff

Definition at line 65 of file piix4.h.

#define SPECIAL_REG   0x00

Definition at line 66 of file piix4.h.