Lines Matching +full:sdio +full:- +full:attached

1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include <linux/dma-mapping.h>
70 u8 itssi_a; /* Idle TSSI Target for A-PHY */
71 u8 itssi_bg; /* Idle TSSI Target for B/G-PHY */
77 u8 txpid5gl[4]; /* 4.9 - 5.1GHz TX power index */
78 u8 txpid5g[4]; /* 5.1 - 5.5GHz TX power index */
79 u8 txpid5gh[4]; /* 5.5 - ...GHz TX power index */
99 u16 boardflags_lo; /* Board flags (bits 0-15) */
100 u16 boardflags_hi; /* Board flags (bits 16-31) */
101 u16 boardflags2_lo; /* Board flags (bits 32-47) */
102 u16 boardflags2_hi; /* Board flags (bits 48-63) */
223 /* Core-ID values. */
258 /* Vendor-ID values */
261 /* Some kernel subsystems poke with dev->drvdata, so we must use the
281 /* Internal-only stuff follows. */
282 void *drvdata; /* Per-device data */
283 void *devtypedata; /* Per-devicetype (eg 802.11) data */
292 return wrap->sdev; in dev_to_ssb_dev()
299 dev->drvdata = data; in ssb_set_drvdata()
304 return dev->drvdata; in ssb_get_drvdata()
307 /* Devicetype specific user data. This is per device-type (not per device) */
312 return dev->devtypedata; in ssb_get_devtypedata()
343 SSB_BUSTYPE_SDIO, /* SSB is connected to SDIO bus */
365 #define SSB_BOARD_BCM94308MP 0x0430 /* 11a-only minipci */
423 * Not valid on all host-buses. So don't use outside of SSB. */
428 /* Current SSB base address window for SDIO. */
432 * On PCMCIA-host busses this is used to protect the whole MMIO access. */
435 /* The host-bus this backplane is running on. */
437 /* Pointers to the host-bus. Check bustype before using any of these pointers. */
443 /* Pointer to the SDIO device (only if bustype == SSB_BUSTYPE_SDIO). */
471 /* The PCI-core device (if available). */
473 /* The MIPS-core device (if available). */
475 /* The EXTif-core device (if available). */
500 /* Internal-only stuff follows. Do not touch. */
508 /* SDIO connected card requires performing a read after writing a 32-bit value */
512 /* The initialization-invariants. */
567 /* Enable a device and pass device-specific SSB_TMSLOW flags.
568 * If no device-specific flags are available, use 0. */
577 return dev->ops->read8(dev, offset); in ssb_read8()
581 return dev->ops->read16(dev, offset); in ssb_read16()
585 return dev->ops->read32(dev, offset); in ssb_read32()
589 dev->ops->write8(dev, offset, value); in ssb_write8()
593 dev->ops->write16(dev, offset, value); in ssb_write16()
597 dev->ops->write32(dev, offset, value); in ssb_write32()
603 dev->ops->block_read(dev, buffer, count, offset, reg_width); in ssb_block_read()
609 dev->ops->block_write(dev, buffer, count, offset, reg_width); in ssb_block_write()
616 * the host device type the SSB device is attached to. */
625 /* PCI-host wrapper driver */
635 if (sdev->bus->bustype == SSB_BUSTYPE_PCI) in ssb_pcihost_set_power_state()
636 pci_set_power_state(sdev->bus->host_pci, state); in ssb_pcihost_set_power_state()
655 /* Before initializing and enabling a device, call this to power-up the bus.
656 * If you want to allow use of dynamic-power-control, pass the flag.
657 * Otherwise static always-on powercontrol will be used. */