summaryrefslogtreecommitdiffstats
path: root/sys/arm/ti/ti_gpio.h
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2014-12-24 04:24:08 +0000
committerloos <loos@FreeBSD.org>2014-12-24 04:24:08 +0000
commit065d16fc266129da8ed9df629a4b46be961fdedf (patch)
tree15ff47ed36c6880725143dbd68f09213c6e60070 /sys/arm/ti/ti_gpio.h
parent6658f63889cd15a7e2002dc9d3700060d1b3c017 (diff)
downloadFreeBSD-src-065d16fc266129da8ed9df629a4b46be961fdedf.zip
FreeBSD-src-065d16fc266129da8ed9df629a4b46be961fdedf.tar.gz
Bring in the last round of updates before adding the interrupt support.
Fix the following issues: - Removed revision from device softc, it isn't used anywhere else out of device attach routine; - Move the duplicated code for verification of valid banks (and pins) to a single function; - Use some macros to simplify the handling of some constants; - Update some stale comments.
Diffstat (limited to 'sys/arm/ti/ti_gpio.h')
-rw-r--r--sys/arm/ti/ti_gpio.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/arm/ti/ti_gpio.h b/sys/arm/ti/ti_gpio.h
index 0e1199f..6b6d794 100644
--- a/sys/arm/ti/ti_gpio.h
+++ b/sys/arm/ti/ti_gpio.h
@@ -46,6 +46,8 @@
*/
struct ti_gpio_softc {
device_t sc_dev;
+ int sc_maxpin;
+ struct mtx sc_mtx;
/*
* The memory resource(s) for the PRCM register set, when the device is
@@ -57,13 +59,6 @@ struct ti_gpio_softc {
/* The handle for the register IRQ handlers. */
void *sc_irq_hdl[MAX_GPIO_INTRS];
-
- /*
- * The following describes the H/W revision of each of the GPIO banks.
- */
- uint32_t sc_revision[MAX_GPIO_BANKS];
-
- struct mtx sc_mtx;
};
#endif /* TI_GPIO_H */
OpenPOWER on IntegriCloud