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

Go to the source code of this file.

Macros

#define USB_CTL_0   0x01
 
#define USB_PHY_0   0x0A
 
#define USB_PHY_RESET   0x01
 
#define USB_PHY_PORT_RESET_0   0x10
 
#define USB_PHY_PORT_RESET_1   0x20
 
#define USB_CONTROLLER_RESET   0x01
 
#define USB_INT_STATUS   0x0E
 
#define USB_INT_EN   0x0F
 
#define USB_PHY_INTERRUPT_EN   0x01
 
#define USB_OHCI_INTERRUPT_EN   0x02
 
#define USB_OHCI_INTERRUPT1_EN   0x04
 
#define USB_OHCI_INTERRUPT2_EN   0x08
 
#define USB_CTRL_INTERRUPT_EN   0x10
 
#define nlm_read_usb_reg(b, r)   nlm_read_reg(b, r)
 
#define nlm_write_usb_reg(b, r, v)   nlm_write_reg(b, r, v)
 
#define nlm_get_usb_pcibase(node, inst)   nlm_pcicfg_base(XLP_IO_USB_OFFSET(node, inst))
 
#define nlm_get_usb_hcd_base(node, inst)   nlm_xkphys_map_pcibar0(nlm_get_usb_pcibase(node, inst))
 
#define nlm_get_usb_regbase(node, inst)   (nlm_get_usb_pcibase(node, inst) + XLP_IO_PCI_HDRSZ)
 

Macro Definition Documentation

#define nlm_get_usb_hcd_base (   node,
  inst 
)    nlm_xkphys_map_pcibar0(nlm_get_usb_pcibase(node, inst))

Definition at line 58 of file usb.h.

#define nlm_get_usb_pcibase (   node,
  inst 
)    nlm_pcicfg_base(XLP_IO_USB_OFFSET(node, inst))

Definition at line 56 of file usb.h.

#define nlm_get_usb_regbase (   node,
  inst 
)    (nlm_get_usb_pcibase(node, inst) + XLP_IO_PCI_HDRSZ)

Definition at line 60 of file usb.h.

#define nlm_read_usb_reg (   b,
  r 
)    nlm_read_reg(b, r)

Definition at line 54 of file usb.h.

#define nlm_write_usb_reg (   b,
  r,
  v 
)    nlm_write_reg(b, r, v)

Definition at line 55 of file usb.h.

#define USB_CONTROLLER_RESET   0x01

Definition at line 43 of file usb.h.

#define USB_CTL_0   0x01

Definition at line 38 of file usb.h.

#define USB_CTRL_INTERRUPT_EN   0x10

Definition at line 50 of file usb.h.

#define USB_INT_EN   0x0F

Definition at line 45 of file usb.h.

#define USB_INT_STATUS   0x0E

Definition at line 44 of file usb.h.

#define USB_OHCI_INTERRUPT1_EN   0x04

Definition at line 48 of file usb.h.

#define USB_OHCI_INTERRUPT2_EN   0x08

Definition at line 49 of file usb.h.

#define USB_OHCI_INTERRUPT_EN   0x02

Definition at line 47 of file usb.h.

#define USB_PHY_0   0x0A

Definition at line 39 of file usb.h.

#define USB_PHY_INTERRUPT_EN   0x01

Definition at line 46 of file usb.h.

#define USB_PHY_PORT_RESET_0   0x10

Definition at line 41 of file usb.h.

#define USB_PHY_PORT_RESET_1   0x20

Definition at line 42 of file usb.h.

#define USB_PHY_RESET   0x01

Definition at line 40 of file usb.h.