Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
olpc.h File Reference
#include <asm/geode.h>

Go to the source code of this file.

Data Structures

struct  olpc_platform_t
 

Macros

#define OLPC_F_PRESENT   0x01
 
#define OLPC_F_DCON   0x02
 
#define OLPC_F_EC_WIDE_SCI   0x04
 
#define EC_SCI_SRC_EMPTY   0x00
 
#define EC_SCI_SRC_GAME   0x01
 
#define EC_SCI_SRC_BATTERY   0x02
 
#define EC_SCI_SRC_BATSOC   0x04
 
#define EC_SCI_SRC_BATERR   0x08
 
#define EC_SCI_SRC_EBOOK   0x10 /* XO-1 only */
 
#define EC_SCI_SRC_WLAN   0x20 /* XO-1 only */
 
#define EC_SCI_SRC_ACPWR   0x40
 
#define EC_SCI_SRC_BATCRIT   0x80
 
#define EC_SCI_SRC_GPWAKE   0x100 /* XO-1.5 only */
 
#define EC_SCI_SRC_ALL   0x1FF
 
#define OLPC_GPIO_MIC_AC   1
 
#define OLPC_GPIO_DCON_STAT0   5
 
#define OLPC_GPIO_DCON_STAT1   6
 
#define OLPC_GPIO_DCON_IRQ   7
 
#define OLPC_GPIO_THRM_ALRM   geode_gpio(10)
 
#define OLPC_GPIO_DCON_LOAD   11
 
#define OLPC_GPIO_DCON_BLANK   12
 
#define OLPC_GPIO_SMB_CLK   14
 
#define OLPC_GPIO_SMB_DATA   15
 
#define OLPC_GPIO_WORKAUX   geode_gpio(24)
 
#define OLPC_GPIO_LID   26
 
#define OLPC_GPIO_ECSCI   27
 

Functions

int pci_olpc_init (void)
 

Macro Definition Documentation

#define EC_SCI_SRC_ACPWR   0x40

Definition at line 112 of file olpc.h.

#define EC_SCI_SRC_ALL   0x1FF

Definition at line 115 of file olpc.h.

#define EC_SCI_SRC_BATCRIT   0x80

Definition at line 113 of file olpc.h.

#define EC_SCI_SRC_BATERR   0x08

Definition at line 109 of file olpc.h.

#define EC_SCI_SRC_BATSOC   0x04

Definition at line 108 of file olpc.h.

#define EC_SCI_SRC_BATTERY   0x02

Definition at line 107 of file olpc.h.

#define EC_SCI_SRC_EBOOK   0x10 /* XO-1 only */

Definition at line 110 of file olpc.h.

#define EC_SCI_SRC_EMPTY   0x00

Definition at line 105 of file olpc.h.

#define EC_SCI_SRC_GAME   0x01

Definition at line 106 of file olpc.h.

#define EC_SCI_SRC_GPWAKE   0x100 /* XO-1.5 only */

Definition at line 114 of file olpc.h.

#define EC_SCI_SRC_WLAN   0x20 /* XO-1 only */

Definition at line 111 of file olpc.h.

#define OLPC_F_DCON   0x02

Definition at line 15 of file olpc.h.

#define OLPC_F_EC_WIDE_SCI   0x04

Definition at line 16 of file olpc.h.

#define OLPC_F_PRESENT   0x01

Definition at line 14 of file olpc.h.

#define OLPC_GPIO_DCON_BLANK   12

Definition at line 125 of file olpc.h.

#define OLPC_GPIO_DCON_IRQ   7

Definition at line 122 of file olpc.h.

#define OLPC_GPIO_DCON_LOAD   11

Definition at line 124 of file olpc.h.

#define OLPC_GPIO_DCON_STAT0   5

Definition at line 120 of file olpc.h.

#define OLPC_GPIO_DCON_STAT1   6

Definition at line 121 of file olpc.h.

#define OLPC_GPIO_ECSCI   27

Definition at line 130 of file olpc.h.

#define OLPC_GPIO_LID   26

Definition at line 129 of file olpc.h.

#define OLPC_GPIO_MIC_AC   1

Definition at line 119 of file olpc.h.

#define OLPC_GPIO_SMB_CLK   14

Definition at line 126 of file olpc.h.

#define OLPC_GPIO_SMB_DATA   15

Definition at line 127 of file olpc.h.

#define OLPC_GPIO_THRM_ALRM   geode_gpio(10)

Definition at line 123 of file olpc.h.

#define OLPC_GPIO_WORKAUX   geode_gpio(24)

Definition at line 128 of file olpc.h.

Function Documentation

int pci_olpc_init ( void  )

Definition at line 309 of file olpc.c.