summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-16 14:01:27 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-16 14:01:27 +0000
commit4bd3422c6a06731be8b807232d07ad7b3918c823 (patch)
treed18455414b86ca0cf90159289a96adf608a3d90f /sys
parentc35cd125aecfc5eea9633ae8fd11e0bda58d2cd2 (diff)
move the tht autoconf glue before the thtc autoconf glue
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_tht.c38
1 files changed, 20 insertions, 18 deletions
diff --git a/sys/dev/pci/if_tht.c b/sys/dev/pci/if_tht.c
index 3285f8f9084..9cd741fc761 100644
--- a/sys/dev/pci/if_tht.c
+++ b/sys/dev/pci/if_tht.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tht.c,v 1.6 2007/04/16 13:30:45 dlg Exp $ */
+/* $OpenBSD: if_tht.c,v 1.7 2007/04/16 14:01:26 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -58,6 +58,23 @@
#define THT_REG_10G_SM_ADD 0x603c
#define THT_REG_10G_STAT 0x6040
+/* port autoconf glue */
+
+struct tht_softc {
+ struct device csc_dev;
+};
+
+int tht_match(struct device *, void *, void *);
+void tht_attach(struct device *, struct device *, void *);
+
+struct cfattach tht_ca = {
+ sizeof(struct tht_softc), tht_match, tht_attach
+};
+
+struct cfdriver tht_cd = {
+ NULL, "tht", DV_IFNET
+};
+
/* pci controller autoconf glue */
struct thtc_softc {
@@ -84,28 +101,13 @@ struct cfdriver thtc_cd = {
NULL, "thtc", DV_DULL
};
-/* port autoconf glue */
+/* glue between the controller and the port */
struct tht_attach_args {
int taa_port;
};
-struct tht_softc {
- struct device csc_dev;
-};
-
-int tht_match(struct device *, void *, void *);
-void tht_attach(struct device *, struct device *, void *);
-
-struct cfattach tht_ca = {
- sizeof(struct tht_softc), tht_match, tht_attach
-};
-
-struct cfdriver tht_cd = {
- NULL, "tht", DV_IFNET
-};
-
-/* misc goo */
+/* misc */
int thtc_intr(void *);
#define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname)