aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/puc/pucvar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/puc/pucvar.h')
-rw-r--r--sys/dev/puc/pucvar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/puc/pucvar.h b/sys/dev/puc/pucvar.h
index fcbb0eb86b664..9bb3928340deb 100644
--- a/sys/dev/puc/pucvar.h
+++ b/sys/dev/puc/pucvar.h
@@ -80,6 +80,8 @@ struct puc_device_description {
u_int serialfreq;
u_int flags;
} ports[PUC_MAX_PORTS];
+ uint32_t ilr_type;
+ uint32_t ilr_offset[2];
};
#define PUC_REG_VEND 0
@@ -91,6 +93,10 @@ struct puc_device_description {
#define PUC_PORT_TYPE_COM 1
#define PUC_PORT_TYPE_LPT 2
+/* Interrupt Latch Register (ILR) types */
+#define PUC_ILR_TYPE_NONE 0
+#define PUC_ILR_TYPE_DIGI 1
+
#define PUC_FLAGS_MEMORY 0x0001 /* Use memory mapped I/O. */
#define PUC_PORT_VALID(desc, port) \
@@ -126,6 +132,9 @@ struct puc_softc {
int irqrid;
struct resource *irqres;
void *intr_cookie;
+ int ilr_enabled;
+ bus_space_tag_t ilr_st;
+ bus_space_handle_t ilr_sh;
struct {
int used;