coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pc87417.h File Reference
#include <device/pnp_type.h>
Include dependency graph for pc87417.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PC87417_FDC   0x00 /* Floppy */
 
#define PC87417_PP   0x01 /* Parallel Port */
 
#define PC87417_SP2   0x02 /* Com2 */
 
#define PC87417_SP1   0x03 /* Com1 */
 
#define PC87417_SWC   0x04 /* System Wake-Up Controller (SWC) */
 
#define PC87417_KBCM   0x05 /* Mouse */
 
#define PC87417_KBCK   0x06 /* Keyboard */
 
#define PC87417_GPIO   0x07
 
#define PC87417_XBUS   0x0F
 
#define PC87417_RTC   0x10
 
#define PC87417_GPIO_DEV   PNP_DEV(0x2e, PC87417_GPIO)
 
#define PC87417_XBUS_DEV   PNP_DEV(0x2e, PC87417_XBUS)
 
#define PC87417_GPSEL   0xf0
 
#define PC87417_GPCFG1   0xf1
 
#define PC87417_GPEVR   0xf2
 
#define PC87417_GPCFG2   0xf3
 
#define PC87417_EXTCFG   0xf4
 
#define PC87417_IOEXT1A   0xf5
 
#define PC87417_IOEXT1B   0xf6
 
#define PC87417_IOEXT2A   0xf7
 
#define PC87417_IOEXT2B   0xf8
 
#define PC87417_GPDO_0   0x00
 
#define PC87417_GPDI_0   0x01
 
#define PC87417_GPDO_1   0x02
 
#define PC87417_GPDI_1   0x03
 
#define PC87417_GPEVEN_1   0x04
 
#define PC87417_GPEVST_1   0x05
 
#define PC87417_GPDO_2   0x06
 
#define PC87417_GPDI_2   0x07
 
#define PC87417_GPDO_3   0x08
 
#define PC87417_GPDI_3   0x09
 
#define PC87417_GPDO_4   0x0a
 
#define PC87417_GPDI_4   0x0b
 
#define PC87417_GPEVEN_4   0x0c
 
#define PC87417_GPEVST_4   0x0d
 
#define PC87417_GPDO_5   0x0e
 
#define PC87417_GPDI_5   0x0f
 
#define PC87417_GPDO_6   0x10
 
#define PC87417_GPDO_7A   0x11
 
#define PC87417_GPDO_7B   0x12
 
#define PC87417_GPDO_7C   0x13
 
#define PC87417_GPDO_7D   0x14
 
#define PC87417_GPDI_7A   0x15
 
#define PC87417_GPDI_7B   0x16
 
#define PC87417_GPDI_7C   0x17
 
#define PC87417_GPDI_7D   0x18
 
#define PC87417_XIOCNF   0xf0
 
#define PC87417_XIOBA1H   0xf1
 
#define PC87417_XIOBA1L   0xf2
 
#define PC87417_XIOSIZE1   0xf3
 
#define PC87417_XIOBA2H   0xf4
 
#define PC87417_XIOBA2L   0xf5
 
#define PC87417_XIOSIZE2   0xf6
 
#define PC87417_XMEMCNF1   0xf7
 
#define PC87417_XMEMCNF2   0xf8
 
#define PC87417_XMEMBAH   0xf9
 
#define PC87417_XMEMBAL   0xfa
 
#define PC87417_XMEMSIZE   0xfb
 
#define PC87417_XIRQMAP1   0xfc
 
#define PC87417_XIRQMAP2   0xfd
 
#define PC87417_XBIMM   0xfe
 
#define PC87417_XBBSL   0xff
 
#define PC87417_XBCNF   0x00
 
#define PC87417_XZCNF0   0x01
 
#define PC87417_XZCNF1   0x02
 
#define PC87417_XIRQC0   0x04
 
#define PC87417_XIRQC1   0x05
 
#define PC87417_XIRQC2   0x06
 
#define PC87417_XIMA0   0x08
 
#define PC87417_XIMA1   0x09
 
#define PC87417_XIMA2   0x0a
 
#define PC87417_XIMA3   0x0b
 
#define PC87417_XIMD   0x0c
 
#define PC87417_XZCNF2   0x0d
 
#define PC87417_XZCNF3   0x0e
 
#define PC87417_XZM0   0x0f
 
#define PC87417_XZM1   0x10
 
#define PC87417_XZM2   0x11
 
#define PC87417_XZM3   0x12
 
#define PC87417_HAP0   0x13
 
#define PC87417_HAP1   0x14
 
#define PC87417_XSCNF   0x15
 
#define PC87417_XWBCNF   0x16
 

Functions

void pc87417_disable_dev (pnp_devfn_t dev)
 
void pc87417_enable_dev (pnp_devfn_t dev)
 
void xbus_cfg (pnp_devfn_t dev)
 

Macro Definition Documentation

◆ PC87417_EXTCFG

#define PC87417_EXTCFG   0xf4

Definition at line 24 of file pc87417.h.

◆ PC87417_FDC

#define PC87417_FDC   0x00 /* Floppy */

Definition at line 6 of file pc87417.h.

◆ PC87417_GPCFG1

#define PC87417_GPCFG1   0xf1

Definition at line 21 of file pc87417.h.

◆ PC87417_GPCFG2

#define PC87417_GPCFG2   0xf3

Definition at line 23 of file pc87417.h.

◆ PC87417_GPDI_0

#define PC87417_GPDI_0   0x01

Definition at line 31 of file pc87417.h.

◆ PC87417_GPDI_1

#define PC87417_GPDI_1   0x03

Definition at line 33 of file pc87417.h.

◆ PC87417_GPDI_2

#define PC87417_GPDI_2   0x07

Definition at line 37 of file pc87417.h.

◆ PC87417_GPDI_3

#define PC87417_GPDI_3   0x09

Definition at line 39 of file pc87417.h.

◆ PC87417_GPDI_4

#define PC87417_GPDI_4   0x0b

Definition at line 41 of file pc87417.h.

◆ PC87417_GPDI_5

#define PC87417_GPDI_5   0x0f

Definition at line 45 of file pc87417.h.

◆ PC87417_GPDI_7A

#define PC87417_GPDI_7A   0x15

Definition at line 51 of file pc87417.h.

◆ PC87417_GPDI_7B

#define PC87417_GPDI_7B   0x16

Definition at line 52 of file pc87417.h.

◆ PC87417_GPDI_7C

#define PC87417_GPDI_7C   0x17

Definition at line 53 of file pc87417.h.

◆ PC87417_GPDI_7D

#define PC87417_GPDI_7D   0x18

Definition at line 54 of file pc87417.h.

◆ PC87417_GPDO_0

#define PC87417_GPDO_0   0x00

Definition at line 30 of file pc87417.h.

◆ PC87417_GPDO_1

#define PC87417_GPDO_1   0x02

Definition at line 32 of file pc87417.h.

◆ PC87417_GPDO_2

#define PC87417_GPDO_2   0x06

Definition at line 36 of file pc87417.h.

◆ PC87417_GPDO_3

#define PC87417_GPDO_3   0x08

Definition at line 38 of file pc87417.h.

◆ PC87417_GPDO_4

#define PC87417_GPDO_4   0x0a

Definition at line 40 of file pc87417.h.

◆ PC87417_GPDO_5

#define PC87417_GPDO_5   0x0e

Definition at line 44 of file pc87417.h.

◆ PC87417_GPDO_6

#define PC87417_GPDO_6   0x10

Definition at line 46 of file pc87417.h.

◆ PC87417_GPDO_7A

#define PC87417_GPDO_7A   0x11

Definition at line 47 of file pc87417.h.

◆ PC87417_GPDO_7B

#define PC87417_GPDO_7B   0x12

Definition at line 48 of file pc87417.h.

◆ PC87417_GPDO_7C

#define PC87417_GPDO_7C   0x13

Definition at line 49 of file pc87417.h.

◆ PC87417_GPDO_7D

#define PC87417_GPDO_7D   0x14

Definition at line 50 of file pc87417.h.

◆ PC87417_GPEVEN_1

#define PC87417_GPEVEN_1   0x04

Definition at line 34 of file pc87417.h.

◆ PC87417_GPEVEN_4

#define PC87417_GPEVEN_4   0x0c

Definition at line 42 of file pc87417.h.

◆ PC87417_GPEVR

#define PC87417_GPEVR   0xf2

Definition at line 22 of file pc87417.h.

◆ PC87417_GPEVST_1

#define PC87417_GPEVST_1   0x05

Definition at line 35 of file pc87417.h.

◆ PC87417_GPEVST_4

#define PC87417_GPEVST_4   0x0d

Definition at line 43 of file pc87417.h.

◆ PC87417_GPIO

#define PC87417_GPIO   0x07

Definition at line 13 of file pc87417.h.

◆ PC87417_GPIO_DEV

#define PC87417_GPIO_DEV   PNP_DEV(0x2e, PC87417_GPIO)

Definition at line 17 of file pc87417.h.

◆ PC87417_GPSEL

#define PC87417_GPSEL   0xf0

Definition at line 20 of file pc87417.h.

◆ PC87417_HAP0

#define PC87417_HAP0   0x13

Definition at line 90 of file pc87417.h.

◆ PC87417_HAP1

#define PC87417_HAP1   0x14

Definition at line 91 of file pc87417.h.

◆ PC87417_IOEXT1A

#define PC87417_IOEXT1A   0xf5

Definition at line 25 of file pc87417.h.

◆ PC87417_IOEXT1B

#define PC87417_IOEXT1B   0xf6

Definition at line 26 of file pc87417.h.

◆ PC87417_IOEXT2A

#define PC87417_IOEXT2A   0xf7

Definition at line 27 of file pc87417.h.

◆ PC87417_IOEXT2B

#define PC87417_IOEXT2B   0xf8

Definition at line 28 of file pc87417.h.

◆ PC87417_KBCK

#define PC87417_KBCK   0x06 /* Keyboard */

Definition at line 12 of file pc87417.h.

◆ PC87417_KBCM

#define PC87417_KBCM   0x05 /* Mouse */

Definition at line 11 of file pc87417.h.

◆ PC87417_PP

#define PC87417_PP   0x01 /* Parallel Port */

Definition at line 7 of file pc87417.h.

◆ PC87417_RTC

#define PC87417_RTC   0x10

Definition at line 15 of file pc87417.h.

◆ PC87417_SP1

#define PC87417_SP1   0x03 /* Com1 */

Definition at line 9 of file pc87417.h.

◆ PC87417_SP2

#define PC87417_SP2   0x02 /* Com2 */

Definition at line 8 of file pc87417.h.

◆ PC87417_SWC

#define PC87417_SWC   0x04 /* System Wake-Up Controller (SWC) */

Definition at line 10 of file pc87417.h.

◆ PC87417_XBBSL

#define PC87417_XBBSL   0xff

Definition at line 71 of file pc87417.h.

◆ PC87417_XBCNF

#define PC87417_XBCNF   0x00

Definition at line 73 of file pc87417.h.

◆ PC87417_XBIMM

#define PC87417_XBIMM   0xfe

Definition at line 70 of file pc87417.h.

◆ PC87417_XBUS

#define PC87417_XBUS   0x0F

Definition at line 14 of file pc87417.h.

◆ PC87417_XBUS_DEV

#define PC87417_XBUS_DEV   PNP_DEV(0x2e, PC87417_XBUS)

Definition at line 18 of file pc87417.h.

◆ PC87417_XIMA0

#define PC87417_XIMA0   0x08

Definition at line 79 of file pc87417.h.

◆ PC87417_XIMA1

#define PC87417_XIMA1   0x09

Definition at line 80 of file pc87417.h.

◆ PC87417_XIMA2

#define PC87417_XIMA2   0x0a

Definition at line 81 of file pc87417.h.

◆ PC87417_XIMA3

#define PC87417_XIMA3   0x0b

Definition at line 82 of file pc87417.h.

◆ PC87417_XIMD

#define PC87417_XIMD   0x0c

Definition at line 83 of file pc87417.h.

◆ PC87417_XIOBA1H

#define PC87417_XIOBA1H   0xf1

Definition at line 57 of file pc87417.h.

◆ PC87417_XIOBA1L

#define PC87417_XIOBA1L   0xf2

Definition at line 58 of file pc87417.h.

◆ PC87417_XIOBA2H

#define PC87417_XIOBA2H   0xf4

Definition at line 60 of file pc87417.h.

◆ PC87417_XIOBA2L

#define PC87417_XIOBA2L   0xf5

Definition at line 61 of file pc87417.h.

◆ PC87417_XIOCNF

#define PC87417_XIOCNF   0xf0

Definition at line 56 of file pc87417.h.

◆ PC87417_XIOSIZE1

#define PC87417_XIOSIZE1   0xf3

Definition at line 59 of file pc87417.h.

◆ PC87417_XIOSIZE2

#define PC87417_XIOSIZE2   0xf6

Definition at line 62 of file pc87417.h.

◆ PC87417_XIRQC0

#define PC87417_XIRQC0   0x04

Definition at line 76 of file pc87417.h.

◆ PC87417_XIRQC1

#define PC87417_XIRQC1   0x05

Definition at line 77 of file pc87417.h.

◆ PC87417_XIRQC2

#define PC87417_XIRQC2   0x06

Definition at line 78 of file pc87417.h.

◆ PC87417_XIRQMAP1

#define PC87417_XIRQMAP1   0xfc

Definition at line 68 of file pc87417.h.

◆ PC87417_XIRQMAP2

#define PC87417_XIRQMAP2   0xfd

Definition at line 69 of file pc87417.h.

◆ PC87417_XMEMBAH

#define PC87417_XMEMBAH   0xf9

Definition at line 65 of file pc87417.h.

◆ PC87417_XMEMBAL

#define PC87417_XMEMBAL   0xfa

Definition at line 66 of file pc87417.h.

◆ PC87417_XMEMCNF1

#define PC87417_XMEMCNF1   0xf7

Definition at line 63 of file pc87417.h.

◆ PC87417_XMEMCNF2

#define PC87417_XMEMCNF2   0xf8

Definition at line 64 of file pc87417.h.

◆ PC87417_XMEMSIZE

#define PC87417_XMEMSIZE   0xfb

Definition at line 67 of file pc87417.h.

◆ PC87417_XSCNF

#define PC87417_XSCNF   0x15

Definition at line 92 of file pc87417.h.

◆ PC87417_XWBCNF

#define PC87417_XWBCNF   0x16

Definition at line 93 of file pc87417.h.

◆ PC87417_XZCNF0

#define PC87417_XZCNF0   0x01

Definition at line 74 of file pc87417.h.

◆ PC87417_XZCNF1

#define PC87417_XZCNF1   0x02

Definition at line 75 of file pc87417.h.

◆ PC87417_XZCNF2

#define PC87417_XZCNF2   0x0d

Definition at line 84 of file pc87417.h.

◆ PC87417_XZCNF3

#define PC87417_XZCNF3   0x0e

Definition at line 85 of file pc87417.h.

◆ PC87417_XZM0

#define PC87417_XZM0   0x0f

Definition at line 86 of file pc87417.h.

◆ PC87417_XZM1

#define PC87417_XZM1   0x10

Definition at line 87 of file pc87417.h.

◆ PC87417_XZM2

#define PC87417_XZM2   0x11

Definition at line 88 of file pc87417.h.

◆ PC87417_XZM3

#define PC87417_XZM3   0x12

Definition at line 89 of file pc87417.h.

Function Documentation

◆ pc87417_disable_dev()

void pc87417_disable_dev ( pnp_devfn_t  dev)

Definition at line 9 of file early_init.c.

References pnp_set_enable(), and pnp_set_logical_device().

Here is the call graph for this function:

◆ pc87417_enable_dev()

void pc87417_enable_dev ( pnp_devfn_t  dev)

Definition at line 15 of file early_init.c.

References pnp_set_enable(), and pnp_set_logical_device().

Here is the call graph for this function:

◆ xbus_cfg()

void xbus_cfg ( pnp_devfn_t  dev)

Definition at line 21 of file early_init.c.

References outb(), PC87417_HAP0, PC87417_XMEMCNF2, PNP_IDX_IO0, pnp_read_config(), pnp_set_logical_device(), and pnp_write_config().

Here is the call graph for this function: