summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/conf/GENERIC3
-rw-r--r--sys/arch/hppa/conf/files.hppa5
-rw-r--r--sys/arch/hppa/dev/ssio.c10
3 files changed, 15 insertions, 3 deletions
diff --git a/sys/arch/hppa/conf/GENERIC b/sys/arch/hppa/conf/GENERIC
index 5a164045e8a..fec587405eb 100644
--- a/sys/arch/hppa/conf/GENERIC
+++ b/sys/arch/hppa/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.102 2007/06/19 22:51:26 kettenis Exp $
+# $OpenBSD: GENERIC,v 1.103 2007/06/20 17:41:04 kettenis Exp $
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
@@ -80,6 +80,7 @@ pci* at ppb?
ssio* at pci?
com0 at ssio? irq 4
com1 at ssio? irq 3
+lpt0 at ssio?
# CardBus bus support
cbb* at pci?
diff --git a/sys/arch/hppa/conf/files.hppa b/sys/arch/hppa/conf/files.hppa
index 26c6fa106c8..cdfff23044a 100644
--- a/sys/arch/hppa/conf/files.hppa
+++ b/sys/arch/hppa/conf/files.hppa
@@ -1,4 +1,4 @@
-# $OpenBSD: files.hppa,v 1.68 2007/06/19 22:51:26 kettenis Exp $
+# $OpenBSD: files.hppa,v 1.69 2007/06/20 17:41:04 kettenis Exp $
#
# hppa-specific configuration info
@@ -190,6 +190,9 @@ file arch/hppa/dev/ssio.c ssio
attach com at ssio with com_ssio
file arch/hppa/dev/com_ssio.c com_ssio
+attach lpt at ssio with lpt_ssio
+file arch/hppa/dev/lpt_ssio.c lpt_ssio
+
###
major {ccd = 1}
diff --git a/sys/arch/hppa/dev/ssio.c b/sys/arch/hppa/dev/ssio.c
index 0133a1e0ce7..94afef05d08 100644
--- a/sys/arch/hppa/dev/ssio.c
+++ b/sys/arch/hppa/dev/ssio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssio.c,v 1.2 2007/06/19 22:51:26 kettenis Exp $ */
+/* $OpenBSD: ssio.c,v 1.3 2007/06/20 17:41:04 kettenis Exp $ */
/*
* Copyright (c) 2007 Mark Kettenis
@@ -224,6 +224,14 @@ ssio_attach(struct device *parent, struct device *self, void *aux)
saa.saa_irq = 3;
config_found(self, &saa, ssio_print);
+ /* Parallel Port. */
+ saa.saa_name = "lpt";
+ saa.saa_iot = sc->sc_iot;
+ saa.saa_iobase = pci_conf_read(pa->pa_pc, pa->pa_tag, SSIO_PCI_PPBAR);
+ saa.saa_iobase &= 0xfffffffe;
+ saa.saa_irq = 5;
+ config_found(self, &saa, ssio_print);
+
return;
unmap_ic2: