| /netbsd-src/sys/dev/nand/ |
| H A D | nand.c | 132 struct nand_chip *chip = &sc->sc_chip; in nand_attach() local 145 if (nand_scan_media(self, chip)) { in nand_attach() 149 nand_flash_if.erasesize = chip->nc_block_size; in nand_attach() 150 nand_flash_if.page_size = chip->nc_page_size; in nand_attach() 151 nand_flash_if.writesize = chip->nc_page_size; in nand_attach() 154 chip->nc_oob_cache = kmem_alloc(chip->nc_spare_size, KM_SLEEP); in nand_attach() 155 chip->nc_page_cache = kmem_alloc(chip->nc_page_size, KM_SLEEP); in nand_attach() 180 kmem_free(chip->nc_oob_cache, chip->nc_spare_size); in nand_attach() 181 kmem_free(chip->nc_page_cache, chip->nc_page_size); in nand_attach() 189 struct nand_chip *chip = &sc->sc_chip; in nand_search() local [all …]
|
| H A D | nand_samsung.c | 58 nand_read_parameters_samsung(device_t self, struct nand_chip * const chip) in nand_read_parameters_samsung() argument 67 if (chip->nc_manf_id != NAND_MFR_SAMSUNG) { in nand_read_parameters_samsung() 88 chip->nc_addr_cycles_column = 2; in nand_read_parameters_samsung() 89 chip->nc_addr_cycles_row = 3; in nand_read_parameters_samsung() 93 chip->nc_page_size = 1024; in nand_read_parameters_samsung() 96 chip->nc_page_size = 2048; in nand_read_parameters_samsung() 99 chip->nc_page_size = 4096; in nand_read_parameters_samsung() 102 chip->nc_page_size = 8192; in nand_read_parameters_samsung() 110 chip->nc_block_size = 64 * 1024; in nand_read_parameters_samsung() 113 chip->nc_block_size = 128 * 1024; in nand_read_parameters_samsung() [all …]
|
| H A D | nand_toshiba.c | 54 nand_read_parameters_toshiba(device_t self, struct nand_chip * const chip) in nand_read_parameters_toshiba() argument 78 chip->nc_addr_cycles_column = 2; in nand_read_parameters_toshiba() 79 chip->nc_addr_cycles_row = 3; in nand_read_parameters_toshiba() 80 chip->nc_lun_blocks = 2048; in nand_read_parameters_toshiba() 84 chip->nc_page_size = 1024; in nand_read_parameters_toshiba() 87 chip->nc_page_size = 2048; in nand_read_parameters_toshiba() 90 chip->nc_page_size = 4096; in nand_read_parameters_toshiba() 93 chip->nc_page_size = 8192; in nand_read_parameters_toshiba() 99 chip->nc_spare_size = in nand_read_parameters_toshiba() 101 (chip->nc_page_size >> 9); in nand_read_parameters_toshiba() [all …]
|
| H A D | nand_bbt.c | 51 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_init() local 54 bbt->nbbt_size = chip->nc_size / chip->nc_block_size / 4; in nand_bbt_init() 73 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_scan() local 76 blocks = chip->nc_size / chip->nc_block_size; in nand_bbt_scan() 88 addr += chip->nc_block_size; in nand_bbt_scan() 101 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_page_has_bbt() local 102 uint8_t *oob = chip->nc_oob_cache; in nand_bbt_page_has_bbt() 119 struct nand_chip *chip = &sc->sc_chip; in nand_bbt_get_bbt_from_page() local 121 uint8_t *bbtp, *buf = chip->nc_page_cache; in nand_bbt_get_bbt_from_page() 124 bbt_pages = bbt->nbbt_size / chip->nc_page_size; in nand_bbt_get_bbt_from_page() [all …]
|
| H A D | nand_micron.c | 92 nand_read_parameters_micron(device_t self, struct nand_chip * const chip) in nand_read_parameters_micron() argument 99 KASSERT(chip->nc_manf_id == NAND_MFR_MICRON); in nand_read_parameters_micron() 100 switch (chip->nc_manf_id) { in nand_read_parameters_micron() 116 KASSERT(chip->nc_manf_id == mfgrid); in nand_read_parameters_micron() 124 return mt29fxgx_parameters(self, chip, devid, params); in nand_read_parameters_micron() 132 mt29fxgx_parameters(device_t self, struct nand_chip * const chip, in mt29fxgx_parameters() argument 149 chip->nc_addr_cycles_column = 2; /* XXX */ in mt29fxgx_parameters() 150 chip->nc_addr_cycles_row = 3; /* XXX */ in mt29fxgx_parameters() 152 chip->nc_flags |= NC_BUSWIDTH_16; in mt29fxgx_parameters() 153 chip->nc_page_size = MT29FxG_PAGESIZE; in mt29fxgx_parameters() [all …]
|
| /netbsd-src/sys/dev/nor/ |
| H A D | nor.c | 144 struct nor_chip * const chip = &sc->sc_chip; in nor_attach() local 153 if (nor_scan_media(self, chip)) in nor_attach() 157 sc->sc_flash_if.erasesize = chip->nc_block_size; in nor_attach() 158 sc->sc_flash_if.page_size = chip->nc_page_size; in nor_attach() 159 sc->sc_flash_if.writesize = chip->nc_page_size; in nor_attach() 163 chip->nc_oob_cache = kmem_alloc(chip->nc_spare_size, KM_SLEEP); in nor_attach() 165 chip->nc_page_cache = kmem_alloc(chip->nc_page_size, KM_SLEEP); in nor_attach() 192 kmem_free(chip->nc_oob_cache, chip->nc_spare_size); in nor_attach() 194 kmem_free(chip->nc_page_cache, chip->nc_page_size); in nor_attach() 202 struct nor_chip * const chip = &sc->sc_chip; in nor_search() local [all …]
|
| H A D | cfi_0002.c | 151 struct nor_chip * const chip) in cfi_0002_init() argument 161 chip->nc_page_size = in cfi_0002_init() 165 chip->nc_spare_size = 0; in cfi_0002_init() 166 chip->nc_badmarker_offs = 0; in cfi_0002_init() 240 struct nor_chip * const chip = &sc->sc_chip; in cfi_0002_read_page() local 241 KASSERT(chip != NULL); in cfi_0002_read_page() 242 KASSERT(chip->nc_page_mask != 0); in cfi_0002_read_page() 243 KASSERT((offset & ~chip->nc_page_mask) == 0); in cfi_0002_read_page() 244 KASSERT (chip->nc_page_size != 0); in cfi_0002_read_page() 245 KASSERT((chip->nc_page_size & ((1 << cfi->cfi_portwidth) - 1)) == 0); in cfi_0002_read_page() [all …]
|
| /netbsd-src/sys/arch/hpcmips/tx/ |
| H A D | txcom.c | 208 struct txcom_chip *chip; in txcom_attach() local 222 chip = sc->sc_chip; in txcom_attach() 223 tc = chip->sc_tc = ua->ua_tc; in txcom_attach() 224 slot = chip->sc_slot = ua->ua_slot; in txcom_attach() 227 txcom_dump(chip); in txcom_attach() 230 txcom_reset(chip); in txcom_attach() 241 if (ISSET(chip->sc_hwflags, TXCOM_HW_CONSOLE)) { in txcom_attach() 307 txcom_reset(struct txcom_chip *chip) in txcom_reset() argument 313 tc = chip->sc_tc; in txcom_reset() 314 slot = chip in txcom_reset() 327 txcom_enable(struct txcom_chip * chip,bool console) txcom_enable() argument 380 txcom_disable(struct txcom_chip * chip) txcom_disable() argument 405 __txcom_txbufready(struct txcom_chip * chip,int retry) __txcom_txbufready() argument 422 struct txcom_chip *chip = sc->sc_chip; txcom_pulse_mode() local 469 struct txcom_chip *chip = &txcom_chip; txcom_cnputc() local 492 txcom_setmode(struct txcom_chip * chip) txcom_setmode() argument 535 txcom_setbaudrate(struct txcom_chip * chip) txcom_setbaudrate() argument 588 struct txcom_chip *chip = sc->sc_chip; txcom_break() local 597 struct txcom_chip *chip = sc->sc_chip; txcom_modem() local 695 struct txcom_chip *chip = sc->sc_chip; txcom_rxintr() local 744 struct txcom_chip *chip = sc->sc_chip; txcom_txintr() local 783 struct txcom_chip *chip; txcomopen() local 1024 struct txcom_chip *chip; txcomstart() local 1065 struct txcom_chip *chip; txcomparam() local 1152 struct txcom_chip *chip = sc->sc_chip; txcom_dcd_hook() local 1168 struct txcom_chip *chip = sc->sc_chip; txcom_cts_hook() local 1187 txcom_dump(struct txcom_chip * chip) txcom_dump() argument [all...] |
| H A D | tx3912video.c | 133 struct video_chip *chip; in tx3912video_attach() local 147 sc->sc_chip = chip = &tx3912video_chip; in tx3912video_attach() 151 depth_print[(ffs(chip->vc_fbdepth) - 1) & 0x3], in tx3912video_attach() 152 (unsigned)chip->vc_fbpaddr, in tx3912video_attach() 153 (unsigned)(chip->vc_fbpaddr + chip->vc_fbsize)); in tx3912video_attach() 156 tc = chip->vc_v; in tx3912video_attach() 209 struct video_chip *chip = sc->sc_chip; in tx3912video_power() local 210 tx_chipset_tag_t tc = chip->vc_v; in tx3912video_power() 240 struct video_chip *chip = sc->sc_chip; in tx3912video_hpcfbinit() local 242 vaddr_t fbvaddr = (vaddr_t)MIPS_PHYS_TO_KSEG1(chip->vc_fbpaddr); in tx3912video_hpcfbinit() [all …]
|
| /netbsd-src/sys/arch/mips/sibyte/include/ |
| H A D | sb1250_defs.h | 127 #define SIBYTE_HDR_FMASK(chip, pass) \ argument 128 (SIBYTE_HDR_FMASK_ ## chip ## _ ## pass) 129 #define SIBYTE_HDR_FMASK_ALLREVS(chip) \ argument 130 (SIBYTE_HDR_FMASK_ ## chip ## _ALL) 150 #define SIBYTE_HDR_FMASK_BEFORE(chip, pass) \ argument 151 ((SIBYTE_HDR_FMASK(chip, pass) - 1) & SIBYTE_HDR_FMASK_ALLREVS(chip)) 154 #define SIBYTE_HDR_FMASK_AFTER(chip, pass) \ argument 155 (~(SIBYTE_HDR_FMASK(chip, pass) \ 156 | (SIBYTE_HDR_FMASK(chip, pass) - 1)) & SIBYTE_HDR_FMASK_ALLREVS(chip)) 160 #define SIBYTE_HDR_FEATURE_CHIP(chip) \ argument [all …]
|
| /netbsd-src/sys/arch/hpcmips/vr/ |
| H A D | vrkiu.c | 102 vrkiu_write(struct vrkiu_chip *chip, int port, unsigned short val) in vrkiu_write() argument 105 bus_space_write_2(chip->kc_iot, chip->kc_ioh, port, val); in vrkiu_write() 109 vrkiu_read(struct vrkiu_chip *chip, int port) in vrkiu_read() argument 112 return (bus_space_read_2(chip->kc_iot, chip->kc_ioh, port)); in vrkiu_read() 185 vrkiu_init(struct vrkiu_chip *chip, bus_space_tag_t iot, in vrkiu_init() argument 189 memset(chip, 0, sizeof(struct vrkiu_chip)); in vrkiu_init() 190 chip->kc_iot = iot; in vrkiu_init() 191 chip->kc_ioh = ioh; in vrkiu_init() 192 chip->kc_enabled = 0; in vrkiu_init() 194 chip->kc_if.hii_ctx = chip; in vrkiu_init() [all …]
|
| /netbsd-src/sys/arch/arm/sunxi/ |
| H A D | sunxi_nand.c | 156 sunxi_nand_rb_state(struct sunxi_nand_softc *sc, struct sunxi_nand_chip *chip) in sunxi_nand_rb_state() argument 158 if (chip->chip_rb_pin != NULL) in sunxi_nand_rb_state() 159 return fdtbus_gpio_read(chip->chip_rb_pin); in sunxi_nand_rb_state() 162 return __SHIFTOUT(status, NDFC_ST_RB_STATE(chip->chip_rb)); in sunxi_nand_rb_state() 223 struct sunxi_nand_chip *chip) in sunxi_nand_send_address() argument 225 if (chip->chip_addr_count == 0) in sunxi_nand_send_address() 231 NAND_WRITE(sc, NDFC_ADDR_LOW, chip->chip_addr[0]); in sunxi_nand_send_address() 232 NAND_WRITE(sc, NDFC_ADDR_HIGH, chip->chip_addr[1]); in sunxi_nand_send_address() 235 __SHIFTIN(chip->chip_addr_count - 1, NDFC_CMD_ADR_NUM)); in sunxi_nand_send_address() 240 chip->chip_addr[0] = 0; in sunxi_nand_send_address() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/ast/ |
| H A D | ast_main.c | 152 ast->chip = AST1100; in ast_detect_chip() 156 ast->chip = AST2500; in ast_detect_chip() 159 ast->chip = AST2400; in ast_detect_chip() 162 ast->chip = AST2300; in ast_detect_chip() 167 ast->chip = AST1100; in ast_detect_chip() 171 ast->chip = AST2200; in ast_detect_chip() 175 ast->chip = AST2150; in ast_detect_chip() 179 ast->chip = AST2100; in ast_detect_chip() 185 ast->chip = AST2000; in ast_detect_chip() 191 switch (ast->chip) { in ast_detect_chip() [all …]
|
| /netbsd-src/sys/external/bsd/drm/dist/shared-core/ |
| H A D | savage_drv.h | 110 #define S3_SAVAGE3D_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE_MX)) argument 112 #define S3_SAVAGE4_SERIES(chip) ((chip==S3_SAVAGE4) \ argument 113 || (chip==S3_PROSAVAGE) \ 114 || (chip==S3_TWISTER) \ 115 || (chip==S3_PROSAVAGEDDR)) 117 #define S3_SAVAGE_MOBILE_SERIES(chip) ((chip==S3_SAVAGE_MX) || (chip==S3_SUPERSAVAGE)) argument 119 #define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000)) argument 121 #define S3_MOBILE_TWISTER_SERIES(chip) ((chip==S3_TWISTER) \ argument 122 ||(chip==S3_PROSAVAGEDDR))
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/savage/ |
| H A D | savage_drv.h | 118 #define S3_SAVAGE3D_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE_MX)) argument 120 #define S3_SAVAGE4_SERIES(chip) ((chip==S3_SAVAGE4) \ argument 121 || (chip==S3_PROSAVAGE) \ 122 || (chip==S3_TWISTER) \ 123 || (chip==S3_PROSAVAGEDDR)) 125 #define S3_SAVAGE_MOBILE_SERIES(chip) ((chip==S3_SAVAGE_MX) || (chip==S3_SUPERSAVAGE)) argument 127 #define S3_SAVAGE_SERIES(chip) ((chip>=S3_SAVAGE3D) && (chip<=S3_SAVAGE2000)) argument 129 #define S3_MOBILE_TWISTER_SERIES(chip) ((chip==S3_TWISTER) \ argument 130 ||(chip==S3_PROSAVAGEDDR))
|
| /netbsd-src/sys/dev/isa/ |
| H A D | cms.c | 221 int chip = CHAN_TO_CHIP(vidx); in cms_on() local 249 chip, voice, octave, count, OCTAVE_OFFSET(voice), in cms_on() 253 CMS_WRITE(sc, chip, CMS_IREG_FREQ0 + voice, count); in cms_on() 256 reg = CMS_READ(sc, chip, CMS_IREG_OCTAVE_1_0 + OCTAVE_OFFSET(voice)); in cms_on() 259 CMS_WRITE(sc, chip, CMS_IREG_OCTAVE_1_0 + OCTAVE_OFFSET(voice), reg); in cms_on() 264 CMS_WRITE(sc, chip, CMS_IREG_VOL0 + voice, ((vol<<4)|vol)); in cms_on() 267 reg = CMS_READ(sc, chip, CMS_IREG_FREQ_CTL); in cms_on() 269 CMS_WRITE(sc, chip, CMS_IREG_FREQ_CTL, reg); in cms_on() 276 int chip = CHAN_TO_CHIP(vidx); in cms_off() local 281 reg = CMS_READ(sc, chip, CMS_IREG_FREQ_CTL); in cms_off() [all …]
|
| H A D | cmsreg.h | 130 #define CMS_WRITE(sc, chip, reg, val) \ argument 132 (sc)->sc_shadowregs[((chip)<<5) + (reg)] = val; \ 134 CMS_ADDR0 + ((chip)<<1), (reg)); \ 136 CMS_DATA0 + ((chip)<<1), (val)); \ 139 #define CMS_READ(sc, chip, reg) ((sc)->sc_shadowregs[((chip)<<5) + (reg)]) argument
|
| /netbsd-src/sys/arch/mips/conf/ |
| H A D | files.alchemy | 29 # On-chip UART device 35 # On-chip ethernet device(s) 40 # On-chip OHCI USB controller 44 # On-chip AC'97 audio controller 49 # On-chip PCI 54 # On-chip GPIO 59 # On-chip PSC 64 # On-chip PSC SMBus Protocol 69 # On-chip PSC SPI Protocol 74 # On-chip PCMCIA
|
| H A D | files.atheros | 24 # On-chip UART device 29 # On-chip ethernet device(s) 34 # On-chip WLAN device(s) 43 # On-chip GPIO 53 # On-chip PCI controller 60 # On-chip OHCI USB controller 64 # On-chip EHCI USB controller
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/ |
| H A D | nouveau_nvkm_engine_device_base.c | 3121 case 0x004: device->chip = &nv4_chipset; break; 3122 case 0x005: device->chip = &nv5_chipset; break; 3123 case 0x010: device->chip = &nv10_chipset; break; 3124 case 0x011: device->chip = &nv11_chipset; break; 3125 case 0x015: device->chip = &nv15_chipset; break; 3126 case 0x017: device->chip = &nv17_chipset; break; 3127 case 0x018: device->chip = &nv18_chipset; break; 3128 case 0x01a: device->chip = &nv1a_chipset; break; 3129 case 0x01f: device->chip = &nv1f_chipset; break; 3130 case 0x020: device->chip = &nv20_chipset; break; [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bios/ |
| H A D | nouveau_nvkm_subdev_bios_mxm.c | 103 if (bios->version.chip == 0x84 || bios->version.chip == 0x86) in mxm_sor_map() 105 if (bios->version.chip == 0x92) in mxm_sor_map() 107 if (bios->version.chip == 0x94 || bios->version.chip == 0x96) in mxm_sor_map() 109 if (bios->version.chip == 0x98) in mxm_sor_map()
|
| /netbsd-src/sys/arch/mips/alchemy/ |
| H A D | au_icu.c | 157 struct au_chipdep * const chip = au_chipdep(); in au_intr_init() local 158 KASSERT(chip != NULL); in au_intr_init() 160 ic0_base = chip->icus[0]; in au_intr_init() 161 ic1_base = chip->icus[1]; in au_intr_init() 166 EVCNT_TYPE_INTR, NULL, chip->name, chip->irqnames[i]); in au_intr_init() 192 struct au_chipdep *chip; in au_intr_establish() local 194 chip = au_chipdep(); in au_intr_establish() 195 KASSERT(chip != NULL); in au_intr_establish()
|
| /netbsd-src/sys/dev/usb/ |
| H A D | if_urtwn.c | 389 sc->chip = 0; in urtwn_attach() 392 SET(sc->chip, URTWN_CHIP_88E); in urtwn_attach() 394 SET(sc->chip, URTWN_CHIP_92EU); in urtwn_attach() 444 aprint_error_dev(self, "unsupported test chip\n"); in urtwn_attach() 449 if (sc->chip & URTWN_CHIP_92C) { in urtwn_attach() 450 sc->ntxchains = (sc->chip & URTWN_CHIP_92C_1T2R) ? 1 : 2; in urtwn_attach() 452 } else if (sc->chip & URTWN_CHIP_92EU) { in urtwn_attach() 460 if (ISSET(sc->chip, URTWN_CHIP_88E) || in urtwn_attach() 461 ISSET(sc->chip, URTWN_CHIP_92EU)) in urtwn_attach() 467 (sc->chip in urtwn_attach() [all...] |
| /netbsd-src/sys/arch/powerpc/conf/ |
| H A D | files.ibm4xx | 19 # On-chip Peripheral Bus 32 # On-chip com device(s) 36 # On-chip GPIO controller 41 # On-chip ethernet device(s) 62 # On-chip PCI bridge 71 # On-chip IIC controller 81 # On-chip USB OTG bridge (Synopsys DesigneWave OTG)
|
| /netbsd-src/sys/dev/ic/ |
| H A D | cyvar.h | 33 #define cd_read_reg(sc,chip,reg) bus_space_read_1(sc->sc_memt, \ argument 34 sc->sc_bsh, sc->sc_cd1400_offs[chip] + \ 37 #define cd_write_reg(sc,chip,reg,val) bus_space_write_1(sc->sc_memt, \ argument 38 sc->sc_bsh, sc->sc_cd1400_offs[chip] + \
|