1*bcc9736cSJeff Kirsher /* drivers/net/ks8851.h 2*bcc9736cSJeff Kirsher * 3*bcc9736cSJeff Kirsher * Copyright 2009 Simtec Electronics 4*bcc9736cSJeff Kirsher * Ben Dooks <ben@simtec.co.uk> 5*bcc9736cSJeff Kirsher * 6*bcc9736cSJeff Kirsher * KS8851 register definitions 7*bcc9736cSJeff Kirsher * 8*bcc9736cSJeff Kirsher * This program is free software; you can redistribute it and/or modify 9*bcc9736cSJeff Kirsher * it under the terms of the GNU General Public License version 2 as 10*bcc9736cSJeff Kirsher * published by the Free Software Foundation. 11*bcc9736cSJeff Kirsher */ 12*bcc9736cSJeff Kirsher 13*bcc9736cSJeff Kirsher #define KS_CCR 0x08 14*bcc9736cSJeff Kirsher #define CCR_EEPROM (1 << 9) 15*bcc9736cSJeff Kirsher #define CCR_SPI (1 << 8) 16*bcc9736cSJeff Kirsher #define CCR_32PIN (1 << 0) 17*bcc9736cSJeff Kirsher 18*bcc9736cSJeff Kirsher /* MAC address registers */ 19*bcc9736cSJeff Kirsher #define KS_MAR(_m) 0x15 - (_m) 20*bcc9736cSJeff Kirsher #define KS_MARL 0x10 21*bcc9736cSJeff Kirsher #define KS_MARM 0x12 22*bcc9736cSJeff Kirsher #define KS_MARH 0x14 23*bcc9736cSJeff Kirsher 24*bcc9736cSJeff Kirsher #define KS_OBCR 0x20 25*bcc9736cSJeff Kirsher #define OBCR_ODS_16mA (1 << 6) 26*bcc9736cSJeff Kirsher 27*bcc9736cSJeff Kirsher #define KS_EEPCR 0x22 28*bcc9736cSJeff Kirsher #define EEPCR_EESRWA (1 << 5) 29*bcc9736cSJeff Kirsher #define EEPCR_EESA (1 << 4) 30*bcc9736cSJeff Kirsher #define EEPCR_EESB_OFFSET 3 31*bcc9736cSJeff Kirsher #define EEPCR_EESB (1 << EEPCR_EESB_OFFSET) 32*bcc9736cSJeff Kirsher #define EEPCR_EEDO (1 << 2) 33*bcc9736cSJeff Kirsher #define EEPCR_EESCK (1 << 1) 34*bcc9736cSJeff Kirsher #define EEPCR_EECS (1 << 0) 35*bcc9736cSJeff Kirsher 36*bcc9736cSJeff Kirsher #define EEPROM_OP_LEN 3 /* bits:*/ 37*bcc9736cSJeff Kirsher #define EEPROM_OP_READ 0x06 38*bcc9736cSJeff Kirsher #define EEPROM_OP_EWEN 0x04 39*bcc9736cSJeff Kirsher #define EEPROM_OP_WRITE 0x05 40*bcc9736cSJeff Kirsher #define EEPROM_OP_EWDS 0x14 41*bcc9736cSJeff Kirsher 42*bcc9736cSJeff Kirsher #define EEPROM_DATA_LEN 16 /* 16 bits EEPROM */ 43*bcc9736cSJeff Kirsher #define EEPROM_WRITE_TIME 4 /* wrt ack time in ms */ 44*bcc9736cSJeff Kirsher #define EEPROM_SK_PERIOD 400 /* in us */ 45*bcc9736cSJeff Kirsher 46*bcc9736cSJeff Kirsher #define KS_MBIR 0x24 47*bcc9736cSJeff Kirsher #define MBIR_TXMBF (1 << 12) 48*bcc9736cSJeff Kirsher #define MBIR_TXMBFA (1 << 11) 49*bcc9736cSJeff Kirsher #define MBIR_RXMBF (1 << 4) 50*bcc9736cSJeff Kirsher #define MBIR_RXMBFA (1 << 3) 51*bcc9736cSJeff Kirsher 52*bcc9736cSJeff Kirsher #define KS_GRR 0x26 53*bcc9736cSJeff Kirsher #define GRR_QMU (1 << 1) 54*bcc9736cSJeff Kirsher #define GRR_GSR (1 << 0) 55*bcc9736cSJeff Kirsher 56*bcc9736cSJeff Kirsher #define KS_WFCR 0x2A 57*bcc9736cSJeff Kirsher #define WFCR_MPRXE (1 << 7) 58*bcc9736cSJeff Kirsher #define WFCR_WF3E (1 << 3) 59*bcc9736cSJeff Kirsher #define WFCR_WF2E (1 << 2) 60*bcc9736cSJeff Kirsher #define WFCR_WF1E (1 << 1) 61*bcc9736cSJeff Kirsher #define WFCR_WF0E (1 << 0) 62*bcc9736cSJeff Kirsher 63*bcc9736cSJeff Kirsher #define KS_WF0CRC0 0x30 64*bcc9736cSJeff Kirsher #define KS_WF0CRC1 0x32 65*bcc9736cSJeff Kirsher #define KS_WF0BM0 0x34 66*bcc9736cSJeff Kirsher #define KS_WF0BM1 0x36 67*bcc9736cSJeff Kirsher #define KS_WF0BM2 0x38 68*bcc9736cSJeff Kirsher #define KS_WF0BM3 0x3A 69*bcc9736cSJeff Kirsher 70*bcc9736cSJeff Kirsher #define KS_WF1CRC0 0x40 71*bcc9736cSJeff Kirsher #define KS_WF1CRC1 0x42 72*bcc9736cSJeff Kirsher #define KS_WF1BM0 0x44 73*bcc9736cSJeff Kirsher #define KS_WF1BM1 0x46 74*bcc9736cSJeff Kirsher #define KS_WF1BM2 0x48 75*bcc9736cSJeff Kirsher #define KS_WF1BM3 0x4A 76*bcc9736cSJeff Kirsher 77*bcc9736cSJeff Kirsher #define KS_WF2CRC0 0x50 78*bcc9736cSJeff Kirsher #define KS_WF2CRC1 0x52 79*bcc9736cSJeff Kirsher #define KS_WF2BM0 0x54 80*bcc9736cSJeff Kirsher #define KS_WF2BM1 0x56 81*bcc9736cSJeff Kirsher #define KS_WF2BM2 0x58 82*bcc9736cSJeff Kirsher #define KS_WF2BM3 0x5A 83*bcc9736cSJeff Kirsher 84*bcc9736cSJeff Kirsher #define KS_WF3CRC0 0x60 85*bcc9736cSJeff Kirsher #define KS_WF3CRC1 0x62 86*bcc9736cSJeff Kirsher #define KS_WF3BM0 0x64 87*bcc9736cSJeff Kirsher #define KS_WF3BM1 0x66 88*bcc9736cSJeff Kirsher #define KS_WF3BM2 0x68 89*bcc9736cSJeff Kirsher #define KS_WF3BM3 0x6A 90*bcc9736cSJeff Kirsher 91*bcc9736cSJeff Kirsher #define KS_TXCR 0x70 92*bcc9736cSJeff Kirsher #define TXCR_TCGICMP (1 << 8) 93*bcc9736cSJeff Kirsher #define TXCR_TCGUDP (1 << 7) 94*bcc9736cSJeff Kirsher #define TXCR_TCGTCP (1 << 6) 95*bcc9736cSJeff Kirsher #define TXCR_TCGIP (1 << 5) 96*bcc9736cSJeff Kirsher #define TXCR_FTXQ (1 << 4) 97*bcc9736cSJeff Kirsher #define TXCR_TXFCE (1 << 3) 98*bcc9736cSJeff Kirsher #define TXCR_TXPE (1 << 2) 99*bcc9736cSJeff Kirsher #define TXCR_TXCRC (1 << 1) 100*bcc9736cSJeff Kirsher #define TXCR_TXE (1 << 0) 101*bcc9736cSJeff Kirsher 102*bcc9736cSJeff Kirsher #define KS_TXSR 0x72 103*bcc9736cSJeff Kirsher #define TXSR_TXLC (1 << 13) 104*bcc9736cSJeff Kirsher #define TXSR_TXMC (1 << 12) 105*bcc9736cSJeff Kirsher #define TXSR_TXFID_MASK (0x3f << 0) 106*bcc9736cSJeff Kirsher #define TXSR_TXFID_SHIFT (0) 107*bcc9736cSJeff Kirsher #define TXSR_TXFID_GET(_v) (((_v) >> 0) & 0x3f) 108*bcc9736cSJeff Kirsher 109*bcc9736cSJeff Kirsher #define KS_RXCR1 0x74 110*bcc9736cSJeff Kirsher #define RXCR1_FRXQ (1 << 15) 111*bcc9736cSJeff Kirsher #define RXCR1_RXUDPFCC (1 << 14) 112*bcc9736cSJeff Kirsher #define RXCR1_RXTCPFCC (1 << 13) 113*bcc9736cSJeff Kirsher #define RXCR1_RXIPFCC (1 << 12) 114*bcc9736cSJeff Kirsher #define RXCR1_RXPAFMA (1 << 11) 115*bcc9736cSJeff Kirsher #define RXCR1_RXFCE (1 << 10) 116*bcc9736cSJeff Kirsher #define RXCR1_RXEFE (1 << 9) 117*bcc9736cSJeff Kirsher #define RXCR1_RXMAFMA (1 << 8) 118*bcc9736cSJeff Kirsher #define RXCR1_RXBE (1 << 7) 119*bcc9736cSJeff Kirsher #define RXCR1_RXME (1 << 6) 120*bcc9736cSJeff Kirsher #define RXCR1_RXUE (1 << 5) 121*bcc9736cSJeff Kirsher #define RXCR1_RXAE (1 << 4) 122*bcc9736cSJeff Kirsher #define RXCR1_RXINVF (1 << 1) 123*bcc9736cSJeff Kirsher #define RXCR1_RXE (1 << 0) 124*bcc9736cSJeff Kirsher 125*bcc9736cSJeff Kirsher #define KS_RXCR2 0x76 126*bcc9736cSJeff Kirsher #define RXCR2_SRDBL_MASK (0x7 << 5) 127*bcc9736cSJeff Kirsher #define RXCR2_SRDBL_SHIFT (5) 128*bcc9736cSJeff Kirsher #define RXCR2_SRDBL_4B (0x0 << 5) 129*bcc9736cSJeff Kirsher #define RXCR2_SRDBL_8B (0x1 << 5) 130*bcc9736cSJeff Kirsher #define RXCR2_SRDBL_16B (0x2 << 5) 131*bcc9736cSJeff Kirsher #define RXCR2_SRDBL_32B (0x3 << 5) 132*bcc9736cSJeff Kirsher #define RXCR2_SRDBL_FRAME (0x4 << 5) 133*bcc9736cSJeff Kirsher #define RXCR2_IUFFP (1 << 4) 134*bcc9736cSJeff Kirsher #define RXCR2_RXIUFCEZ (1 << 3) 135*bcc9736cSJeff Kirsher #define RXCR2_UDPLFE (1 << 2) 136*bcc9736cSJeff Kirsher #define RXCR2_RXICMPFCC (1 << 1) 137*bcc9736cSJeff Kirsher #define RXCR2_RXSAF (1 << 0) 138*bcc9736cSJeff Kirsher 139*bcc9736cSJeff Kirsher #define KS_TXMIR 0x78 140*bcc9736cSJeff Kirsher 141*bcc9736cSJeff Kirsher #define KS_RXFHSR 0x7C 142*bcc9736cSJeff Kirsher #define RXFSHR_RXFV (1 << 15) 143*bcc9736cSJeff Kirsher #define RXFSHR_RXICMPFCS (1 << 13) 144*bcc9736cSJeff Kirsher #define RXFSHR_RXIPFCS (1 << 12) 145*bcc9736cSJeff Kirsher #define RXFSHR_RXTCPFCS (1 << 11) 146*bcc9736cSJeff Kirsher #define RXFSHR_RXUDPFCS (1 << 10) 147*bcc9736cSJeff Kirsher #define RXFSHR_RXBF (1 << 7) 148*bcc9736cSJeff Kirsher #define RXFSHR_RXMF (1 << 6) 149*bcc9736cSJeff Kirsher #define RXFSHR_RXUF (1 << 5) 150*bcc9736cSJeff Kirsher #define RXFSHR_RXMR (1 << 4) 151*bcc9736cSJeff Kirsher #define RXFSHR_RXFT (1 << 3) 152*bcc9736cSJeff Kirsher #define RXFSHR_RXFTL (1 << 2) 153*bcc9736cSJeff Kirsher #define RXFSHR_RXRF (1 << 1) 154*bcc9736cSJeff Kirsher #define RXFSHR_RXCE (1 << 0) 155*bcc9736cSJeff Kirsher 156*bcc9736cSJeff Kirsher #define KS_RXFHBCR 0x7E 157*bcc9736cSJeff Kirsher #define KS_TXQCR 0x80 158*bcc9736cSJeff Kirsher #define TXQCR_AETFE (1 << 2) 159*bcc9736cSJeff Kirsher #define TXQCR_TXQMAM (1 << 1) 160*bcc9736cSJeff Kirsher #define TXQCR_METFE (1 << 0) 161*bcc9736cSJeff Kirsher 162*bcc9736cSJeff Kirsher #define KS_RXQCR 0x82 163*bcc9736cSJeff Kirsher #define RXQCR_RXDTTS (1 << 12) 164*bcc9736cSJeff Kirsher #define RXQCR_RXDBCTS (1 << 11) 165*bcc9736cSJeff Kirsher #define RXQCR_RXFCTS (1 << 10) 166*bcc9736cSJeff Kirsher #define RXQCR_RXIPHTOE (1 << 9) 167*bcc9736cSJeff Kirsher #define RXQCR_RXDTTE (1 << 7) 168*bcc9736cSJeff Kirsher #define RXQCR_RXDBCTE (1 << 6) 169*bcc9736cSJeff Kirsher #define RXQCR_RXFCTE (1 << 5) 170*bcc9736cSJeff Kirsher #define RXQCR_ADRFE (1 << 4) 171*bcc9736cSJeff Kirsher #define RXQCR_SDA (1 << 3) 172*bcc9736cSJeff Kirsher #define RXQCR_RRXEF (1 << 0) 173*bcc9736cSJeff Kirsher 174*bcc9736cSJeff Kirsher #define KS_TXFDPR 0x84 175*bcc9736cSJeff Kirsher #define TXFDPR_TXFPAI (1 << 14) 176*bcc9736cSJeff Kirsher #define TXFDPR_TXFP_MASK (0x7ff << 0) 177*bcc9736cSJeff Kirsher #define TXFDPR_TXFP_SHIFT (0) 178*bcc9736cSJeff Kirsher 179*bcc9736cSJeff Kirsher #define KS_RXFDPR 0x86 180*bcc9736cSJeff Kirsher #define RXFDPR_RXFPAI (1 << 14) 181*bcc9736cSJeff Kirsher 182*bcc9736cSJeff Kirsher #define KS_RXDTTR 0x8C 183*bcc9736cSJeff Kirsher #define KS_RXDBCTR 0x8E 184*bcc9736cSJeff Kirsher 185*bcc9736cSJeff Kirsher #define KS_IER 0x90 186*bcc9736cSJeff Kirsher #define KS_ISR 0x92 187*bcc9736cSJeff Kirsher #define IRQ_LCI (1 << 15) 188*bcc9736cSJeff Kirsher #define IRQ_TXI (1 << 14) 189*bcc9736cSJeff Kirsher #define IRQ_RXI (1 << 13) 190*bcc9736cSJeff Kirsher #define IRQ_RXOI (1 << 11) 191*bcc9736cSJeff Kirsher #define IRQ_TXPSI (1 << 9) 192*bcc9736cSJeff Kirsher #define IRQ_RXPSI (1 << 8) 193*bcc9736cSJeff Kirsher #define IRQ_TXSAI (1 << 6) 194*bcc9736cSJeff Kirsher #define IRQ_RXWFDI (1 << 5) 195*bcc9736cSJeff Kirsher #define IRQ_RXMPDI (1 << 4) 196*bcc9736cSJeff Kirsher #define IRQ_LDI (1 << 3) 197*bcc9736cSJeff Kirsher #define IRQ_EDI (1 << 2) 198*bcc9736cSJeff Kirsher #define IRQ_SPIBEI (1 << 1) 199*bcc9736cSJeff Kirsher #define IRQ_DEDI (1 << 0) 200*bcc9736cSJeff Kirsher 201*bcc9736cSJeff Kirsher #define KS_RXFCTR 0x9C 202*bcc9736cSJeff Kirsher #define KS_RXFC 0x9D 203*bcc9736cSJeff Kirsher #define RXFCTR_RXFC_MASK (0xff << 8) 204*bcc9736cSJeff Kirsher #define RXFCTR_RXFC_SHIFT (8) 205*bcc9736cSJeff Kirsher #define RXFCTR_RXFC_GET(_v) (((_v) >> 8) & 0xff) 206*bcc9736cSJeff Kirsher #define RXFCTR_RXFCT_MASK (0xff << 0) 207*bcc9736cSJeff Kirsher #define RXFCTR_RXFCT_SHIFT (0) 208*bcc9736cSJeff Kirsher 209*bcc9736cSJeff Kirsher #define KS_TXNTFSR 0x9E 210*bcc9736cSJeff Kirsher 211*bcc9736cSJeff Kirsher #define KS_MAHTR0 0xA0 212*bcc9736cSJeff Kirsher #define KS_MAHTR1 0xA2 213*bcc9736cSJeff Kirsher #define KS_MAHTR2 0xA4 214*bcc9736cSJeff Kirsher #define KS_MAHTR3 0xA6 215*bcc9736cSJeff Kirsher 216*bcc9736cSJeff Kirsher #define KS_FCLWR 0xB0 217*bcc9736cSJeff Kirsher #define KS_FCHWR 0xB2 218*bcc9736cSJeff Kirsher #define KS_FCOWR 0xB4 219*bcc9736cSJeff Kirsher 220*bcc9736cSJeff Kirsher #define KS_CIDER 0xC0 221*bcc9736cSJeff Kirsher #define CIDER_ID 0x8870 222*bcc9736cSJeff Kirsher #define CIDER_REV_MASK (0x7 << 1) 223*bcc9736cSJeff Kirsher #define CIDER_REV_SHIFT (1) 224*bcc9736cSJeff Kirsher #define CIDER_REV_GET(_v) (((_v) >> 1) & 0x7) 225*bcc9736cSJeff Kirsher 226*bcc9736cSJeff Kirsher #define KS_CGCR 0xC6 227*bcc9736cSJeff Kirsher 228*bcc9736cSJeff Kirsher #define KS_IACR 0xC8 229*bcc9736cSJeff Kirsher #define IACR_RDEN (1 << 12) 230*bcc9736cSJeff Kirsher #define IACR_TSEL_MASK (0x3 << 10) 231*bcc9736cSJeff Kirsher #define IACR_TSEL_SHIFT (10) 232*bcc9736cSJeff Kirsher #define IACR_TSEL_MIB (0x3 << 10) 233*bcc9736cSJeff Kirsher #define IACR_ADDR_MASK (0x1f << 0) 234*bcc9736cSJeff Kirsher #define IACR_ADDR_SHIFT (0) 235*bcc9736cSJeff Kirsher 236*bcc9736cSJeff Kirsher #define KS_IADLR 0xD0 237*bcc9736cSJeff Kirsher #define KS_IAHDR 0xD2 238*bcc9736cSJeff Kirsher 239*bcc9736cSJeff Kirsher #define KS_PMECR 0xD4 240*bcc9736cSJeff Kirsher #define PMECR_PME_DELAY (1 << 14) 241*bcc9736cSJeff Kirsher #define PMECR_PME_POL (1 << 12) 242*bcc9736cSJeff Kirsher #define PMECR_WOL_WAKEUP (1 << 11) 243*bcc9736cSJeff Kirsher #define PMECR_WOL_MAGICPKT (1 << 10) 244*bcc9736cSJeff Kirsher #define PMECR_WOL_LINKUP (1 << 9) 245*bcc9736cSJeff Kirsher #define PMECR_WOL_ENERGY (1 << 8) 246*bcc9736cSJeff Kirsher #define PMECR_AUTO_WAKE_EN (1 << 7) 247*bcc9736cSJeff Kirsher #define PMECR_WAKEUP_NORMAL (1 << 6) 248*bcc9736cSJeff Kirsher #define PMECR_WKEVT_MASK (0xf << 2) 249*bcc9736cSJeff Kirsher #define PMECR_WKEVT_SHIFT (2) 250*bcc9736cSJeff Kirsher #define PMECR_WKEVT_GET(_v) (((_v) >> 2) & 0xf) 251*bcc9736cSJeff Kirsher #define PMECR_WKEVT_ENERGY (0x1 << 2) 252*bcc9736cSJeff Kirsher #define PMECR_WKEVT_LINK (0x2 << 2) 253*bcc9736cSJeff Kirsher #define PMECR_WKEVT_MAGICPKT (0x4 << 2) 254*bcc9736cSJeff Kirsher #define PMECR_WKEVT_FRAME (0x8 << 2) 255*bcc9736cSJeff Kirsher #define PMECR_PM_MASK (0x3 << 0) 256*bcc9736cSJeff Kirsher #define PMECR_PM_SHIFT (0) 257*bcc9736cSJeff Kirsher #define PMECR_PM_NORMAL (0x0 << 0) 258*bcc9736cSJeff Kirsher #define PMECR_PM_ENERGY (0x1 << 0) 259*bcc9736cSJeff Kirsher #define PMECR_PM_SOFTDOWN (0x2 << 0) 260*bcc9736cSJeff Kirsher #define PMECR_PM_POWERSAVE (0x3 << 0) 261*bcc9736cSJeff Kirsher 262*bcc9736cSJeff Kirsher /* Standard MII PHY data */ 263*bcc9736cSJeff Kirsher #define KS_P1MBCR 0xE4 264*bcc9736cSJeff Kirsher #define KS_P1MBSR 0xE6 265*bcc9736cSJeff Kirsher #define KS_PHY1ILR 0xE8 266*bcc9736cSJeff Kirsher #define KS_PHY1IHR 0xEA 267*bcc9736cSJeff Kirsher #define KS_P1ANAR 0xEC 268*bcc9736cSJeff Kirsher #define KS_P1ANLPR 0xEE 269*bcc9736cSJeff Kirsher 270*bcc9736cSJeff Kirsher #define KS_P1SCLMD 0xF4 271*bcc9736cSJeff Kirsher #define P1SCLMD_LEDOFF (1 << 15) 272*bcc9736cSJeff Kirsher #define P1SCLMD_TXIDS (1 << 14) 273*bcc9736cSJeff Kirsher #define P1SCLMD_RESTARTAN (1 << 13) 274*bcc9736cSJeff Kirsher #define P1SCLMD_DISAUTOMDIX (1 << 10) 275*bcc9736cSJeff Kirsher #define P1SCLMD_FORCEMDIX (1 << 9) 276*bcc9736cSJeff Kirsher #define P1SCLMD_AUTONEGEN (1 << 7) 277*bcc9736cSJeff Kirsher #define P1SCLMD_FORCE100 (1 << 6) 278*bcc9736cSJeff Kirsher #define P1SCLMD_FORCEFDX (1 << 5) 279*bcc9736cSJeff Kirsher #define P1SCLMD_ADV_FLOW (1 << 4) 280*bcc9736cSJeff Kirsher #define P1SCLMD_ADV_100BT_FDX (1 << 3) 281*bcc9736cSJeff Kirsher #define P1SCLMD_ADV_100BT_HDX (1 << 2) 282*bcc9736cSJeff Kirsher #define P1SCLMD_ADV_10BT_FDX (1 << 1) 283*bcc9736cSJeff Kirsher #define P1SCLMD_ADV_10BT_HDX (1 << 0) 284*bcc9736cSJeff Kirsher 285*bcc9736cSJeff Kirsher #define KS_P1CR 0xF6 286*bcc9736cSJeff Kirsher #define P1CR_HP_MDIX (1 << 15) 287*bcc9736cSJeff Kirsher #define P1CR_REV_POL (1 << 13) 288*bcc9736cSJeff Kirsher #define P1CR_OP_100M (1 << 10) 289*bcc9736cSJeff Kirsher #define P1CR_OP_FDX (1 << 9) 290*bcc9736cSJeff Kirsher #define P1CR_OP_MDI (1 << 7) 291*bcc9736cSJeff Kirsher #define P1CR_AN_DONE (1 << 6) 292*bcc9736cSJeff Kirsher #define P1CR_LINK_GOOD (1 << 5) 293*bcc9736cSJeff Kirsher #define P1CR_PNTR_FLOW (1 << 4) 294*bcc9736cSJeff Kirsher #define P1CR_PNTR_100BT_FDX (1 << 3) 295*bcc9736cSJeff Kirsher #define P1CR_PNTR_100BT_HDX (1 << 2) 296*bcc9736cSJeff Kirsher #define P1CR_PNTR_10BT_FDX (1 << 1) 297*bcc9736cSJeff Kirsher #define P1CR_PNTR_10BT_HDX (1 << 0) 298*bcc9736cSJeff Kirsher 299*bcc9736cSJeff Kirsher /* TX Frame control */ 300*bcc9736cSJeff Kirsher 301*bcc9736cSJeff Kirsher #define TXFR_TXIC (1 << 15) 302*bcc9736cSJeff Kirsher #define TXFR_TXFID_MASK (0x3f << 0) 303*bcc9736cSJeff Kirsher #define TXFR_TXFID_SHIFT (0) 304*bcc9736cSJeff Kirsher 305*bcc9736cSJeff Kirsher /* SPI frame opcodes */ 306*bcc9736cSJeff Kirsher #define KS_SPIOP_RD (0x00) 307*bcc9736cSJeff Kirsher #define KS_SPIOP_WR (0x40) 308*bcc9736cSJeff Kirsher #define KS_SPIOP_RXFIFO (0x80) 309*bcc9736cSJeff Kirsher #define KS_SPIOP_TXFIFO (0xC0) 310