| /src/sys/arch/ews4800mips/include/ | 
| gavar.h | 35 struct ga {  struct 41 bool ga_init(struct ga *);
 42 void ga_clut_get(struct ga *);
 43 void ga_clut_set(const struct ga *);
 45 void ga_plane_mask_test(const struct ga *);
 
 | 
| /src/sys/arch/ews4800mips/dev/ | 
| ga.c | 1 /*	$NetBSD: ga.c,v 1.5 2009/11/07 07:27:43 cegger Exp $	*/ 35 __KERNEL_RCSID(0, "$NetBSD: ga.c,v 1.5 2009/11/07 07:27:43 cegger Exp $");
 52 bool ga_map(struct ga *);
 53 void ga_clut_init(struct ga *);
 54 void ga_vblank_start(const struct ga *);
 55 void ga_bt463_reg(const struct ga *, int);
 56 void ga_bt463_data(const struct ga *, int);
 57 void ga_bt463_reg_data(const struct ga *, int, int);
 59 void ga_dda_busy(const struct ga *);
 60 void ga_ovl_init(const struct ga *);
 [all...]
 | 
| /src/sys/arch/mac68k/dev/ | 
| grf_subr.c | 50 	struct grfbus_attach_args ga;  local in function:grf_establish 60 	ga.ga_name = "grf";
 61 	ga.ga_grfmode = gm;
 62 	ga.ga_slot = sp;
 63 	ga.ga_tag = sc->sc_tag;
 64 	ga.ga_handle = sc->sc_handle;
 65 	ga.ga_phys = sc->sc_basepa;
 66 	ga.ga_mode = g_mode;
 67 	ga.ga_set_mapreg = sc->sc_set_mapreg;
 68 	ga.ga_parent = sc
 75  struct grfbus_attach_args *ga = aux;  local in function:grfbusprint
 [all...]
 | 
| /src/sys/arch/evbppc/mpc85xx/ | 
| ds1553rtc.c | 67 	struct generic_attach_args * const ga = aux;  local in function:ds1553rtc_match 72 	bus_size_t size = ga->ga_size;
 74 	if (ga->ga_addr == OBIOCF_ADDR_DEFAULT)
 82 	error = bus_space_map(ga->ga_bst, ga->ga_addr, size, 0, &bsh);
 87 	saved_data = bus_space_read_1(ga->ga_bst, bsh, target);
 88 	bus_space_write_1(ga->ga_bst, bsh, target, ~saved_data);
 89 	new_data = bus_space_read_1(ga->ga_bst, bsh, target);
 91 	bus_space_write_1(ga->ga_bst, bsh, target, saved_data);
 93 	bus_space_unmap(ga->ga_bst, bsh, size)
 102  struct generic_attach_args * const ga = aux;  local in function:ds1553rtc_attach
 [all...]
 | 
| wdc_obio.c | 101 	struct generic_attach_args * const ga = aux;  local in function:wdc_obio_match 102 	bus_size_t size = ga->ga_size;
 106 	if (ga->ga_addr == OBIOCF_ADDR_DEFAULT)
 116 	if (wdc_obio_initregmap(&wdr, ga->ga_bst, ga->ga_addr, size)) {
 130 	struct generic_attach_args * const ga = aux;  local in function:wdc_obio_attach
 131 	bus_size_t size = ga->ga_size;
 138 	if (!wdc_obio_initregmap(wdr, ga->ga_bst, ga->ga_addr, size)) {
 162 	if (ga->ga_irq != OBIOCF_IRQ_DEFAULT)
 [all...]
 | 
| /src/sys/arch/sgimips/gio/ | 
| gio.c | 182 	struct gio_attach_args ga;  local in function:gio_attach 208 		ga.ga_slot = -1;
 209 		ga.ga_addr = gfx_bases[i].base;
 211 		if (platform.badaddr((void *)MIPS_PHYS_TO_KSEG1(ga.ga_addr),
 214 		ga.ga_iot = normal_memt;
 215 		if (bus_space_map(normal_memt, ga.ga_addr, 0,
 216 		    BUS_SPACE_MAP_LINEAR, &ga.ga_ioh) != 0)
 218 		ga.ga_dmat = &sgimips_default_bus_dma_tag;
 219 		ga.ga_product = -1;
 222 		if (config_found(self, &ga, gio_print
 281  struct gio_attach_args *ga = aux;  local in function:gio_print
 324  struct gio_attach_args *ga = aux;  local in function:gio_search
 346  struct gio_attach_args *ga = aux;  local in function:gio_submatch
 362  struct gio_attach_args ga;  local in function:gio_cnattach
 [all...]
 | 
| /src/sys/arch/hppa/dev/ | 
| wax.c | 77 wax_fix_args(void *_sc, struct gsc_attach_args *ga) 85 	module_offset = ga->ga_hpa - (hppa_hpa_t) sc->sc_regs;
 86 	ga->ga_irq = HPPACF_IRQ_UNDEF;
 88 		ga->ga_irq = 1;
 90 		ga->ga_irq = 6;
 112 	struct gsc_attach_args ga;  local in function:waxattach
 153 	ga.ga_ca = *ca;	/* clone from us */
 155 		ga.ga_dp.dp_bc[0] = ga.ga_dp.dp_bc[1];
 156 		ga.ga_dp.dp_bc[1] = ga.ga_dp.dp_bc[2]
 [all...]
 | 
| asp.c | 145 asp_fix_args(void *_sc, struct gsc_attach_args *ga) 153 	module_offset = ga->ga_hpa - (hppa_hpa_t) sc->sc_trs;
 154 	ga->ga_irq = HPPACF_IRQ_UNDEF;
 155 #define ASP_IRQ(off, irq) if (module_offset == off) ga->ga_irq = irq
 189 	struct gsc_attach_args ga;  local in function:aspattach
 226 			  sizeof(ga.ga_ether_address), 0, &ioh)) {
 231 		ga.ga_ether_address, sizeof(ga.ga_ether_address));
 232 	bus_space_unmap(ca->ca_iot, ioh, sizeof(ga.ga_ether_address));
 262 	ga.ga_ca = *ca;	/* clone from us *
 [all...]
 | 
| lasi.c | 95 lasi_fix_args(void *_sc, struct gsc_attach_args *ga) 103 	module_offset = ga->ga_hpa - (hppa_hpa_t) sc->sc_trs;
 104 	ga->ga_irq = HPPACF_IRQ_UNDEF;
 105 #define LASI_IRQ(off, irq) if (module_offset == off) ga->ga_irq = irq
 121 		pdcproc_lan_station_id(ga->ga_ether_address,
 122 		    sizeof(ga->ga_ether_address), ga->ga_hpa);
 149 	struct gsc_attach_args ga;  local in function:lasiattach
 201 	ga.ga_ca = *ca;	/* clone from us */
 203 		ga.ga_dp.dp_bc[0] = ga.ga_dp.dp_bc[1]
 [all...]
 | 
| /src/sys/arch/hppa/gsc/ | 
| gscbus.c | 113 	struct gsc_attach_args ga;  local in function:gsc_module_callback 116 	ga = sc->sc_ga;
 117 	ga.ga_ca = *ca;
 118 	ga.ga_iot = sc->sc_ga.ga_iot;
 119 	ga.ga_dmatag = sc->sc_ga.ga_dmatag;
 120 	(*sc->sc_ga.ga_fix_args)(sc->sc_ga.ga_fix_args_cookie, &ga);
 122 	return config_found(self, &ga, mbprint,
 129 	struct gsc_attach_args *ga = aux;  local in function:gscmatch
 131 	return !strcmp(ga->ga_name, "gsc");
 138 	struct gsc_attach_args *ga = aux  local in function:gscattach
 [all...]
 | 
| hil_gsc.c | 63 	struct gsc_attach_args *ga = aux;  local in function:hil_gsc_match 65 	if (ga->ga_type.iodc_type != HPPA_TYPE_FIO ||
 66 	    ga->ga_type.iodc_sv_model != HPPA_FIO_HIL)
 77 	struct gsc_attach_args *ga = aux;  local in function:hil_gsc_attach
 81 	sc->sc_bst = ga->ga_iot;
 82 	if (bus_space_map(ga->ga_iot, ga->ga_hpa,
 89 	gsc->sc_hil_console = ga->ga_dp.dp_mod == PAGE0->mem_kbd.pz_dp.dp_mod &&
 90 	    memcmp(ga->ga_dp.dp_bc, PAGE0->mem_kbd.pz_dp.dp_bc, 6) == 0;
 96 	    ga->ga_ir, ga->ga_irq)
 [all...]
 | 
| oosiop_gsc.c | 120 	struct gsc_attach_args *ga = aux;  local in function:oosiop_gsc_match 124 	if (ga->ga_type.iodc_type != HPPA_TYPE_FIO ||
 125 	    ga->ga_type.iodc_sv_model != HPPA_FIO_SCSI)
 128 	if (bus_space_map(ga->ga_iot, ga->ga_hpa,
 133 	bus_space_unmap(ga->ga_iot, ioh, OOSIOP_GSC_OFFSET + OOSIOP_NREGS);
 141 	struct gsc_attach_args *ga = aux;  local in function:oosiop_gsc_attach
 145 	sc->sc_bst = ga->ga_iot;
 146 	sc->sc_dmat = ga->ga_dmatag;
 147 	if (bus_space_map(sc->sc_bst, ga->ga_hpa
 [all...]
 | 
| lpt_gsc.c | 138 	struct gsc_attach_args *ga = aux;  local in function:lpt_gsc_probe 144 	if (ga->ga_type.iodc_type != HPPA_TYPE_FIO ||
 145 	    ga->ga_type.iodc_sv_model != HPPA_FIO_CENT)
 153 		bus_space_unmap(ga->ga_iot, ioh, LPT_NPORTS);		     \
 159 		bus_space_unmap(ga->ga_iot, ioh, LPT_NPORTS);		     \
 164 	base = ga->ga_hpa + LPTGSC_OFFSET;
 165 	if (bus_space_map(ga->ga_iot, base, LPT_NPORTS, 0, &ioh))
 171 	if (!lpt_port_test(ga->ga_iot, ioh, base, lpt_data, data, mask))
 175 	if (!lpt_port_test(ga->ga_iot, ioh, base, lpt_data, data, mask))
 180 		if (!lpt_port_test(ga->ga_iot, ioh, base, lpt_data, data, mask)
 201  struct gsc_attach_args *ga = aux;  local in function:lpt_gsc_attach
 [all...]
 | 
| com_gsc.c | 80 	struct gsc_attach_args *ga = aux;  local in function:com_gsc_probe 82 	if (ga->ga_type.iodc_type != HPPA_TYPE_FIO ||
 83 	    (ga->ga_type.iodc_sv_model != HPPA_FIO_GRS232 &&
 84 	     ga->ga_type.iodc_sv_model != HPPA_FIO_RS232))
 95 	struct gsc_attach_args *ga = aux;  local in function:com_gsc_attach
 104 	iot = ga->ga_iot;
 105 	iobase = (bus_addr_t)ga->ga_hpa + COMGSC_OFFSET;
 110 	if ((hppa_hpa_t)PAGE0->mem_cons.pz_hpa == ga->ga_hpa ) {
 141 	gsc->sc_ih = hppa_intr_establish(IPL_TTY, comintr, sc, ga->ga_ir,
 142 	    ga->ga_irq)
 [all...]
 | 
| osiop_gsc.c | 120 	struct gsc_attach_args *ga = aux;  local in function:osiop_gsc_match 124 	if (ga->ga_type.iodc_type != HPPA_TYPE_FIO ||
 125 	    (ga->ga_type.iodc_sv_model != HPPA_FIO_GSCSI))
 128 	if (bus_space_map(ga->ga_iot, ga->ga_hpa,
 133 	bus_space_unmap(ga->ga_iot, ioh, OSIOP_GSC_OFFSET + OSIOP_NREGS);
 141 	struct gsc_attach_args *ga = aux;  local in function:osiop_gsc_attach
 145 	sc->sc_bst = ga->ga_iot;
 146 	sc->sc_dmat = ga->ga_dmatag;
 147 	if (bus_space_map(sc->sc_bst, ga->ga_hpa
 [all...]
 | 
| /src/sys/arch/powerpc/booke/dev/ | 
| pq3obio.c | 76 	struct generic_attach_args * const ga = aux;  local in function:pq3obio_print 81 	if (ga->ga_cs != OBIOCF_CS_DEFAULT)
 82 		aprint_normal(" cs %d", ga->ga_cs);
 84 	if (ga->ga_addr != OBIOCF_ADDR_DEFAULT) {
 85 		aprint_normal(" addr %#x", ga->ga_addr);
 86 		if (ga->ga_size != OBIOCF_SIZE_DEFAULT)
 87 			aprint_normal(" size %#x", ga->ga_size);
 89 	if (ga->ga_irq != OBIOCF_IRQ_DEFAULT)
 90 		aprint_normal(" irq %d", ga->ga_irq);
 99 	struct generic_attach_args ga;  local in function:pq3obio_search
 [all...]
 | 
| /src/sys/arch/amiga/dev/ | 
| gvpbus.c | 75 	struct gvpbus_args ga;  local in function:gvpbusattach 79 	memcpy(&ga.zargs, zap, sizeof(struct zbus_args));
 86 		ga.prod = *((u_char *)zap->va + 0x8001) & 0xf8;
 92 		ga.prod = GVP_SERIESII;		/* really a series I */
 98 	switch (ga.prod) {
 122 		if (ga.prod == GVP_COMBO_R4_SCSI)
 137 		printf(": unknown Series II %x", ga.prod);
 147 		ga.flags = flags0 | GVP_SCSI;
 148 		config_found(self, &ga, gvpbusprint, CFARGS_NONE);
 151 		ga.flags = flags0 | GVP_IO
 [all...]
 | 
| /src/sys/arch/alpha/gbus/ | 
| gbus.c | 82 	struct gbus_attach_args *ga = aux;  local in function:gbusprint 85 		aprint_normal("%s at %s", ga->ga_name, pnp);
 86 	aprint_normal(" offset 0x%lx", ga->ga_offset);
 115 	const struct gbus_attach_args *ga;  local in function:gbusattach
 125 	for (ga = gbus_children; ga->ga_name != NULL; ga++) {
 126 		struct gbus_attach_args gaa = *ga;
 
 | 
| mcclock_gbus.c | 67 	struct gbus_attach_args *ga = aux;  local in function:mcclock_gbus_match 69 	if (strcmp(ga->ga_name, mcclock_cd.cd_name))
 79 	struct gbus_attach_args *ga = aux;  local in function:mcclock_gbus_attach
 82 	sc->sc_bst = ga->ga_iot;
 84 	if (bus_space_map(sc->sc_bst, ga->ga_offset, MC_NREGS+MC_NVRAM_SIZE,
 
 | 
| /src/sys/dev/gpio/ | 
| gpiolock.c | 69 	struct gpio_attach_args *ga = aux;  local in function:gpiolock_match 72 	if (strcmp(ga->ga_dvname, cf->cf_name))
 75 	if (ga->ga_offset == -1)
 79 	npins = gpio_npins(ga->ga_mask);
 82 		    ga->ga_mask);
 93 	struct gpio_attach_args *ga = aux;  local in function:gpiolock_attach
 96 	sc->sc_npins = gpio_npins(ga->ga_mask);
 99 	sc->sc_gpio = ga->ga_gpio;
 101 	if (gpio_pin_map(sc->sc_gpio, ga->ga_offset, ga->ga_mask
 [all...]
 | 
| gpiobutton.c | 82 	struct gpio_attach_args * const ga = aux;  local in function:gpiobutton_match 84 	if (strcmp(ga->ga_dvname, cf->cf_name) != 0)
 87 	if (ga->ga_offset == -1 || gpio_npins(ga->ga_mask) != 1)
 90 	const u_int type = __SHIFTOUT(ga->ga_flags, GPIOBUTTON_TYPE_MASK);
 105 	struct gpio_attach_args * const ga = aux;  local in function:gpiobutton_attach
 109 	const u_int type = __SHIFTOUT(ga->ga_flags, GPIOBUTTON_TYPE_MASK);
 110 	const u_int pol = __SHIFTOUT(ga->ga_flags, GPIOBUTTON_POLARITY_MASK);
 113 	sc->sc_gpio = ga->ga_gpio;
 115 	if (gpio_pin_map(sc->sc_gpio, ga->ga_offset, ga->ga_mask
 [all...]
 | 
| /src/sys/arch/ews4800mips/sbd/ | 
| fb_sbdio.c | 64 	struct ga *sc_ga; 81 void fb_common_init(struct rasops_info *, struct ga *);
 114 static struct ga fb_console_ga;
 133 	struct ga *ga;  local in function:fb_sbdio_attach
 149 		ga = kmem_zalloc(sizeof(struct ga), KM_SLEEP);
 150 		ga->reg_paddr = sa->sa_addr2;
 151 		ga->flags = sa->sa_flags;
 155 		ga->reg_addr = regva
 244  struct ga *ga;  local in function:fb_sbdio_cnattach
 273  struct ga *ga = sc->sc_ga;  local in function:_fb_ioctl
 [all...]
 | 
| /src/sys/dev/gpib/ | 
| hil_gpib.c | 57 	struct gpib_attach_args *ga = aux;  local in function:hilmatch 61 	if (gpibsend(ga->ga_ic, ga->ga_address, -1, cmd, 3) != 3)
 63 	if (gpibrecv(ga->ga_ic, ga->ga_address, -1, &stat, 1) != 1)
 73 	struct gpib_attach_args *ga = aux;  local in function:hilattach
 77 	sc->sc_ic = ga->ga_ic;
 78 	sc->sc_address = ga->ga_address;
 
 | 
| /src/sys/arch/evbarm/netwalker/ | 
| netwalker_lid.c | 74 	struct gpio_attach_args *ga = aux;  local in function:netwalker_lid_match 76 	if (strcmp(ga->ga_dvname, cf->cf_name))
 78 	if (ga->ga_offset == -1)
 81 	if (gpio_npins(ga->ga_mask) != LID_NPINS) {
 83 		    ga->ga_mask);
 94 	struct gpio_attach_args *ga = aux;  local in function:netwalker_lid_attach
 98 	sc->sc_gpio = ga->ga_gpio;
 102 	if (gpio_pin_map(sc->sc_gpio, ga->ga_offset, ga->ga_mask, &sc->sc_map)) {
 117 	sc->sc_intr = intr_establish(GPIO3_IRQBASE + ga->ga_offset
 [all...]
 | 
| netwalker_pwr.c | 75 	struct gpio_attach_args *ga = aux;  local in function:netwalker_pwr_match 77 	if (strcmp(ga->ga_dvname, cf->cf_name))
 79 	if (ga->ga_offset == -1)
 82 	if (gpio_npins(ga->ga_mask) != PWR_NPINS) {
 84 		    ga->ga_mask);
 95 	struct gpio_attach_args *ga = aux;  local in function:netwalker_pwr_attach
 99 	sc->sc_gpio = ga->ga_gpio;
 103 	if (gpio_pin_map(sc->sc_gpio, ga->ga_offset, ga->ga_mask, &sc->sc_map)) {
 118 	sc->sc_intr = intr_establish(GPIO1_IRQBASE + ga->ga_offset
 [all...]
 |