Lines Matching +full:sc +full:- +full:resource
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2003-2004 M. Warner Losh <imp@FreeBSD.org>
37 struct cbb_softc *sc; member
43 struct resource *res;
46 /* note: unlike the regular resource list, there can be
48 * combination of rid and res->r_dev should be unique.
50 bus_addr_t cardaddr; /* for 16-bit pccard memory */
58 struct resource *base_res;
59 struct resource *irq_res;
73 #define CB_UNKNOWN 0 /* NOT Cardbus-PCI bridge */
111 struct resource *r);
112 struct resource *cbb_alloc_resource(device_t brdev, device_t child,
118 struct resource *r);
120 void cbb_disable_func_intr(struct cbb_softc *sc);
133 struct resource *r);
134 int cbb_setup_intr(device_t dev, device_t child, struct resource *irq,
137 int cbb_teardown_intr(device_t dev, device_t child, struct resource *irq,
145 cbb_set(struct cbb_softc *sc, uint32_t reg, uint32_t val) in cbb_set() argument
147 bus_space_write_4(sc->bst, sc->bsh, reg, val); in cbb_set()
151 cbb_get(struct cbb_softc *sc, uint32_t reg) in cbb_get() argument
153 return (bus_space_read_4(sc->bst, sc->bsh, reg)); in cbb_get()
157 cbb_setb(struct cbb_softc *sc, uint32_t reg, uint32_t bits) in cbb_setb() argument
159 cbb_set(sc, reg, cbb_get(sc, reg) | bits); in cbb_setb()
163 cbb_clrb(struct cbb_softc *sc, uint32_t reg, uint32_t bits) in cbb_clrb() argument
165 cbb_set(sc, reg, cbb_get(sc, reg) & ~bits); in cbb_clrb()