Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
pnp.h File Reference
#include <linux/device.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/mod_devicetable.h>

Go to the source code of this file.

Data Structures

struct  pnp_card
 
struct  pnp_card_link
 
struct  pnp_dev
 
struct  pnp_fixup
 
struct  pnp_id
 
struct  pnp_driver
 
struct  pnp_card_driver
 
struct  pnp_protocol
 

Macros

#define PNP_NAME_LEN   50
 
#define global_to_pnp_card(n)   list_entry(n, struct pnp_card, global_list)
 
#define protocol_to_pnp_card(n)   list_entry(n, struct pnp_card, protocol_list)
 
#define to_pnp_card(n)   container_of(n, struct pnp_card, dev)
 
#define pnp_for_each_card(card)
 
#define global_to_pnp_dev(n)   list_entry(n, struct pnp_dev, global_list)
 
#define card_to_pnp_dev(n)   list_entry(n, struct pnp_dev, card_list)
 
#define protocol_to_pnp_dev(n)   list_entry(n, struct pnp_dev, protocol_list)
 
#define to_pnp_dev(n)   container_of(n, struct pnp_dev, dev)
 
#define pnp_for_each_dev(dev)
 
#define card_for_each_dev(card, dev)
 
#define pnp_dev_name(dev)   (dev)->name
 
#define PNP_CONFIG_NORMAL   0x0001
 
#define PNP_CONFIG_FORCE   0x0002 /* disables validity checking */
 
#define PNP_READ   0x0001
 
#define PNP_WRITE   0x0002
 
#define PNP_DISABLE   0x0004
 
#define PNP_CONFIGURABLE   0x0008
 
#define PNP_REMOVABLE   0x0010
 
#define pnp_can_read(dev)
 
#define pnp_can_write(dev)
 
#define pnp_can_disable(dev)
 
#define pnp_can_configure(dev)
 
#define pnp_device_is_isapnp(dev)   0
 
#define pnp_device_is_pnpbios(dev)   0
 
#define pnp_acpi_device(dev)   0
 
#define PNP_READY   0x0000
 
#define PNP_ATTACHED   0x0001
 
#define PNP_BUSY   0x0002
 
#define PNP_FAULTY   0x0004
 
#define isapnp_card_number(dev)   ((dev)->card ? (dev)->card->number : -1)
 
#define isapnp_csn_number(dev)   ((dev)->number)
 
#define to_pnp_driver(drv)   container_of(drv, struct pnp_driver, driver)
 
#define to_pnp_card_driver(drv)   container_of(drv, struct pnp_card_driver, link)
 
#define PNP_DRIVER_RES_DO_NOT_CHANGE   0x0001 /* do not change the state of the device */
 
#define PNP_DRIVER_RES_DISABLE   0x0003 /* ensure the device is disabled */
 
#define to_pnp_protocol(n)   list_entry(n, struct pnp_protocol, protocol_list)
 
#define protocol_for_each_card(protocol, card)
 
#define protocol_for_each_dev(protocol, dev)
 
#define pnp_platform_devices   0
 

Variables

struct mutex pnp_res_mutex
 
struct bus_type pnp_bus_type
 

Macro Definition Documentation

#define card_for_each_dev (   card,
  dev 
)
Value:
for((dev) = card_to_pnp_dev((card)->devices.next); \
(dev) != card_to_pnp_dev(&(card)->devices); \
(dev) = card_to_pnp_dev((dev)->card_list.next))

Definition at line 281 of file pnp.h.

#define card_to_pnp_dev (   n)    list_entry(n, struct pnp_dev, card_list)

Definition at line 274 of file pnp.h.

#define global_to_pnp_card (   n)    list_entry(n, struct pnp_card, global_list)

Definition at line 218 of file pnp.h.

#define global_to_pnp_dev (   n)    list_entry(n, struct pnp_dev, global_list)

Definition at line 273 of file pnp.h.

#define isapnp_card_number (   dev)    ((dev)->card ? (dev)->card->number : -1)

Definition at line 358 of file pnp.h.

#define isapnp_csn_number (   dev)    ((dev)->number)

Definition at line 359 of file pnp.h.

#define pnp_acpi_device (   dev)    0

Definition at line 347 of file pnp.h.

#define PNP_ATTACHED   0x0001

Definition at line 352 of file pnp.h.

#define PNP_BUSY   0x0002

Definition at line 353 of file pnp.h.

#define pnp_can_configure (   dev)
Value:

Definition at line 319 of file pnp.h.

#define pnp_can_disable (   dev)
Value:
(((dev)->protocol->disable) && \

Definition at line 317 of file pnp.h.

#define pnp_can_read (   dev)
Value:
(((dev)->protocol->get) && \

Definition at line 313 of file pnp.h.

#define pnp_can_write (   dev)
Value:
(((dev)->protocol->set) && \

Definition at line 315 of file pnp.h.

#define PNP_CONFIG_FORCE   0x0002 /* disables validity checking */

Definition at line 304 of file pnp.h.

#define PNP_CONFIG_NORMAL   0x0001

Definition at line 303 of file pnp.h.

#define PNP_CONFIGURABLE   0x0008

Definition at line 310 of file pnp.h.

#define pnp_dev_name (   dev)    (dev)->name

Definition at line 285 of file pnp.h.

#define pnp_device_is_isapnp (   dev)    0

Definition at line 326 of file pnp.h.

#define pnp_device_is_pnpbios (   dev)    0

Definition at line 334 of file pnp.h.

#define PNP_DISABLE   0x0004

Definition at line 309 of file pnp.h.

#define PNP_DRIVER_RES_DISABLE   0x0003 /* ensure the device is disabled */

Definition at line 401 of file pnp.h.

#define PNP_DRIVER_RES_DO_NOT_CHANGE   0x0001 /* do not change the state of the device */

Definition at line 400 of file pnp.h.

#define PNP_FAULTY   0x0004

Definition at line 354 of file pnp.h.

#define pnp_for_each_card (   card)
Value:
for((card) = global_to_pnp_card(pnp_cards.next); \
(card) != global_to_pnp_card(&pnp_cards); \
(card) = global_to_pnp_card((card)->global_list.next))

Definition at line 221 of file pnp.h.

#define pnp_for_each_dev (   dev)
Value:
for((dev) = global_to_pnp_dev(pnp_global.next); \
(dev) != global_to_pnp_dev(&pnp_global); \
(dev) = global_to_pnp_dev((dev)->global_list.next))

Definition at line 277 of file pnp.h.

#define PNP_NAME_LEN   50

Definition at line 16 of file pnp.h.

#define pnp_platform_devices   0

Definition at line 478 of file pnp.h.

#define PNP_READ   0x0001

Definition at line 307 of file pnp.h.

#define PNP_READY   0x0000

Definition at line 351 of file pnp.h.

#define PNP_REMOVABLE   0x0010

Definition at line 311 of file pnp.h.

#define PNP_WRITE   0x0002

Definition at line 308 of file pnp.h.

#define protocol_for_each_card (   protocol,
  card 
)
Value:
(card) != protocol_to_pnp_card(&(protocol)->cards); \
(card) = protocol_to_pnp_card((card)->protocol_list.next))

Definition at line 429 of file pnp.h.

#define protocol_for_each_dev (   protocol,
  dev 
)
Value:
(dev) != protocol_to_pnp_dev(&(protocol)->devices); \
(dev) = protocol_to_pnp_dev((dev)->protocol_list.next))

Definition at line 433 of file pnp.h.

#define protocol_to_pnp_card (   n)    list_entry(n, struct pnp_card, protocol_list)

Definition at line 219 of file pnp.h.

#define protocol_to_pnp_dev (   n)    list_entry(n, struct pnp_dev, protocol_list)

Definition at line 275 of file pnp.h.

#define to_pnp_card (   n)    container_of(n, struct pnp_card, dev)

Definition at line 220 of file pnp.h.

#define to_pnp_card_driver (   drv)    container_of(drv, struct pnp_card_driver, link)

Definition at line 397 of file pnp.h.

#define to_pnp_dev (   n)    container_of(n, struct pnp_dev, dev)

Definition at line 276 of file pnp.h.

#define to_pnp_driver (   drv)    container_of(drv, struct pnp_driver, driver)

Definition at line 382 of file pnp.h.

#define to_pnp_protocol (   n)    list_entry(n, struct pnp_protocol, protocol_list)

Definition at line 428 of file pnp.h.

Variable Documentation

struct bus_type pnp_bus_type

Definition at line 213 of file driver.c.

struct mutex pnp_res_mutex