列挙体定義書 C#

velocity_cam_type cam_type)

構文構文

enum velocity_cam_type cam_type)

ファイル名ファイル名

via-velocity.h

列挙体情報列挙体情報

No. 名称 属性説明
1
velocity_cam_type cam_type)   
  int i; BYTE_REG_BITS_SET(CAMCR_PS_CAM_MASK    
  CAMCR_PS1 | CAMCR_PS0    
  &regs->CAMCR); if (cam_type = = VELOCITY_VLAN_ID_CAM) writeb(CAMADDR_VCAMSL  
  &regs->CAMADDR); else writeb(0    
  &regs->CAMADDR); for (i = 0; i < 8; i++) *mask++ 0; i < 8; i++) *mask++ = readb(&(regs->MARCAM[i])); writeb(0  
  &regs->CAMADDR); BYTE_REG_BITS_SET(CAMCR_PS_MAR    
  CAMCR_PS1 | CAMCR_PS0    
  &regs->CAMCR); } static inline void mac_set_cam_mask    
  u8 * mask    
  enum velocity_cam_type cam_type) { int i; BYTE_REG_BITS_SET(CA    
  CAMCR_PS1 | CAMCR_PS0    
  &regs->CAMCR); if (cam_type = = VELOCITY_VLAN_ID_CAM) writeb(CAMADDR_CAMEN | CAMADDR_VCAMSL  
  &regs->CAMADDR); else writeb(CAMADDR_CAMEN    
  &regs->CAMADDR); for (i 0; i < 8; i++) { writeb(*mask++  
  &(regs->MARCAM[i])); } writeb(0    
  &regs->CAMADDR); BYTE_REG_BITS_SET(CAMCR_PS_MAR    
  CAMCR_PS1 | CAMCR_PS0    
  &regs->CAMCR); } static inline void mac_set_cam(stru    
  int idx    
  u8 * addr    
  enum velocity_cam_type cam_type) { int i; BYTE_REG_BITS_SET(C    
  CAMCR_PS1 | CAMCR_PS0    
  &regs->CAMCR); idx &= (64 - 1); if (cam_type = (64 - 1); if (cam_type == VELOCITY_VLAN_ID_CAM) writeb(CAMADDR_CAMEN | CAMADDR_VCAMSL | idx  
  &regs->CAMADDR); else writeb(CAMADDR_CAMEN | idx    
  &regs->CAMADDR); if (cam_type = = VELOCITY_VLAN_ID_CAM) writew(*((u16 *) addr)  
  &regs->MARCAM[0]); else { for (i 0; i < 6; i++) { writeb(*addr++  
  &(regs->MARCAM[i])); } } BYTE_REG_BITS_ON(CAMCR_CAMWR    
  &regs->CAMCR); udelay(10); writeb(0    
  &regs->CAMADDR); BYTE_REG_BITS_SET(CAMCR_PS_MAR    
  CAMCR_PS1 | CAMCR_PS0    
  &regs->CAMCR); } static inline void mac_get_cam(str    
  int idx    
  u8 * addr    
  enum velocity_cam_type cam_type) { int i; BYTE_REG_BITS_SET(C    
  CAMCR_PS1 | CAMCR_PS0    
  &regs->CAMCR); idx &= (64 - 1); if (cam_type = (64 - 1); if (cam_type == VELOCITY_VLAN_ID_CAM) writeb(CAMADDR_CAMEN | CAMADDR_VCAMSL | idx  
  &regs->CAMADDR); else writeb(CAMADDR_CAMEN | idx    
  &regs->CAMADDR); BYTE_REG_BITS_ON(CAMCR_CAMRD    
  &regs->CAMCR); udelay(10); if (cam_type == VELOCITY_VLAN_ID_C = VELOCITY_VLAN_ID_CAM) *((u16 *) addr) = readw(&(regs->MARCAM[0])); else for (i = 0  
  addr++) *((u8 *) addr) readb(&(regs->MARCAM[i])); writeb(0  
  &regs->CAMADDR); BYTE_REG_BITS_SET(CAMCR_PS_MAR    
  CAMCR_PS1 | CAMCR_PS0    
  &regs->CAMCR); } inline static void mac_wol_reset(str    
  &regs->STICKHW); BYTE_REG_BITS_OFF((STICKHW_DS1 | STICKHW_DS0)    
  &regs->STICKHW); BYTE_REG_BITS_OFF(CHIPGCR_FCGMII    
  &regs->CHIPGCR); BYTE_REG_BITS_OFF(CHIPGCR_FCMODE    
  &regs->CHIPGCR); writeb(WOLCFG_PMEOVR    
  &regs->WOLCFGClr); writew(0xFFFF    
  &regs->WOLCRClr); writew(0xFFFF    
  &regs->WOLSRClr);    

See Also

目次 | ファイル一覧 | 関数一覧 | ネームスペース一覧 | クラス一覧 | #define一覧 | マクロ一覧 | 外部変数一覧 | 構造体一覧 | 共用体一覧 | 列挙体一覧 | Const一覧 | 索引 | サイドメニュー