diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index d84ab155c7e3..ff8a7103ecb0 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -82,8 +82,10 @@ __FBSDID("$FreeBSD$");
 
 #include <machine/psl.h>
 
-#include <i386/isa/cyreg.h>
-#include <i386/isa/ic/cd1400.h>
+#include <dev/ic/cd1400.h>
+
+#include <dev/cy/cyreg.h>
+#include <dev/cy/cyvar.h>
 
 #define	NCY 10			/* KLUDGE */
 
@@ -326,6 +328,7 @@ struct com_s {
 };
 
 devclass_t	cy_devclass;
+char		cy_driver_name[] = "cy";
 
 static	void	cd1400_channel_cmd(struct com_s *com, int cmd);
 static	void	cd1400_channel_cmd_wait(struct com_s *com);
@@ -351,7 +354,6 @@ static	void	disc_optim(struct tty *tp, struct termios *t,
 void	cystatus(int unit);
 #endif
 
-static char driver_name[] = "cy";
 static struct	mtx sio_lock;
 static int	sio_inited;
 
@@ -370,7 +372,7 @@ static struct cdevsw sio_cdevsw = {
 	.d_close =	sioclose,
 	.d_write =	siowrite,
 	.d_ioctl =	sioioctl,
-	.d_name =	driver_name,
+	.d_name =	cy_driver_name,
 	.d_flags =	D_TTY | D_NEEDGIANT,
 };
 
@@ -401,7 +403,7 @@ static	int	cy_total_devices;
 #undef	RxFifoThreshold
 static	int	volatile RxFifoThreshold = (CD1400_RX_FIFO_SIZE / 2);
 
-static int
+int
 cy_units(cy_iobase, cy_align)
 	cy_addr	cy_iobase;
 	int	cy_align;
@@ -468,7 +470,7 @@ cyattach_common(cy_iobase, cy_align)
 
 	while (sio_inited != 2)
 		if (atomic_cmpset_int(&sio_inited, 0, 1)) {
-			mtx_init(&sio_lock, driver_name, NULL, MTX_SPIN);
+			mtx_init(&sio_lock, cy_driver_name, NULL, MTX_SPIN);
 			atomic_store_rel_int(&sio_inited, 2);
 		}
 
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index 0224c235fbd0..9a38d1ebc0a3 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -40,8 +40,10 @@ __FBSDID("$FreeBSD$");
 #include <sys/rman.h>
 #include <machine/resource.h>
 
-#include <i386/isa/cyreg.h>
-#include <i386/isa/ic/cd1400.h>
+#include <isa/isavar.h>
+
+#include <dev/cy/cyreg.h>
+#include <dev/cy/cyvar.h>
 
 static	int	cy_isa_attach(device_t dev);
 static	int	cy_isa_probe(device_t dev);
@@ -55,7 +57,7 @@ static device_method_t cy_isa_methods[] = {
 };
 
 static driver_t cy_isa_driver = {
-	driver_name,
+	cy_driver_name,
 	cy_isa_methods,
 	0,
 };
diff --git a/sys/dev/cy/cy_pci.c b/sys/dev/cy/cy_pci.c
index c08c419d292f..b0eab4e4a5c2 100644
--- a/sys/dev/cy/cy_pci.c
+++ b/sys/dev/cy/cy_pci.c
@@ -48,6 +48,8 @@ __FBSDID("$FreeBSD$");
 
 #include <dev/pci/pcivar.h>
 
+#include <dev/cy/cyvar.h>
+
 #define	CY_PCI_BASE_ADDR0		0x10
 #define	CY_PCI_BASE_ADDR1		0x14
 #define	CY_PCI_BASE_ADDR2		0x18
@@ -66,11 +68,6 @@ __FBSDID("$FreeBSD$");
 #define	PLX_9060			0x0c
 #define	PLX_9080			0x0d
 
-extern devclass_t	cy_devclass;
-
-void	*cyattach_common(u_char volatile *iobase, int cy_align);
-driver_intr_t	cyintr;
-
 static int	cy_pci_attach(device_t dev);
 static int	cy_pci_probe(device_t dev);
 
@@ -83,7 +80,7 @@ static device_method_t cy_pci_methods[] = {
 };
 
 static driver_t cy_pci_driver = {
-	"cy",
+	cy_driver_name,
 	cy_pci_methods,
 	0,
 };