summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus/ppi.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-11-16 17:42:02 +0000
committerjhb <jhb@FreeBSD.org>2008-11-16 17:42:02 +0000
commit51d2cc2053b7f7f5b8d7d908edfbe54ce19e0e2a (patch)
treeb65bdf61a799cb56906bea0847235a1bd148de23 /sys/dev/ppbus/ppi.c
parentf5d16a4d6617f527e4a33953e48f82272ee8d572 (diff)
downloadFreeBSD-src-51d2cc2053b7f7f5b8d7d908edfbe54ce19e0e2a.zip
FreeBSD-src-51d2cc2053b7f7f5b8d7d908edfbe54ce19e0e2a.tar.gz
Various whitespace and style fixes.
Diffstat (limited to 'sys/dev/ppbus/ppi.c')
-rw-r--r--sys/dev/ppbus/ppi.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/ppbus/ppi.c b/sys/dev/ppbus/ppi.c
index 4c05667..8c168d8 100644
--- a/sys/dev/ppbus/ppi.c
+++ b/sys/dev/ppbus/ppi.c
@@ -115,7 +115,7 @@ static void
ppi_disable_intr(device_t ppidev)
{
char r;
- device_t ppbus = device_get_parent(ppidev);
+ device_t ppbus = device_get_parent(ppidev);
r = ppb_rctr(ppbus);
ppb_wctr(ppbus, r & ~IRQENABLE);
@@ -197,7 +197,7 @@ static void
ppiintr(void *arg)
{
device_t ppidev = (device_t)arg;
- device_t ppbus = device_get_parent(ppidev);
+ device_t ppbus = device_get_parent(ppidev);
struct ppi_data *ppi = DEVTOSOFTC(ppidev);
ppi_disable_intr(ppidev);
@@ -256,7 +256,7 @@ ppiopen(struct cdev *dev, int flags, int fmt, struct thread *td)
{
struct ppi_data *ppi = dev->si_drv1;
device_t ppidev = ppi->ppi_device;
- device_t ppbus = device_get_parent(ppidev);
+ device_t ppbus = device_get_parent(ppidev);
int res;
if (!(ppi->ppi_flags & HAVE_PPBUS)) {
@@ -270,7 +270,7 @@ ppiopen(struct cdev *dev, int flags, int fmt, struct thread *td)
#ifdef PERIPH_1284
if (ppi->intr_resource) {
/* register our interrupt handler */
- bus_setup_intr(ppidev, ppi->intr_resource,
+ bus_setup_intr(ppidev, ppi->intr_resource,
INTR_TYPE_TTY, NULL, ppiintr, dev,
&ppi->intr_cookie);
}
@@ -286,7 +286,7 @@ ppiclose(struct cdev *dev, int flags, int fmt, struct thread *td)
{
struct ppi_data *ppi = dev->si_drv1;
device_t ppidev = ppi->ppi_device;
- device_t ppbus = device_get_parent(ppidev);
+ device_t ppbus = device_get_parent(ppidev);
ppi->ppi_count --;
if (!ppi->ppi_count) {
@@ -328,7 +328,7 @@ ppiread(struct cdev *dev, struct uio *uio, int ioflag)
#ifdef PERIPH_1284
struct ppi_data *ppi = dev->si_drv1;
device_t ppidev = ppi->ppi_device;
- device_t ppbus = device_get_parent(ppidev);
+ device_t ppbus = device_get_parent(ppidev);
int len, error = 0;
switch (ppb_1284_get_state(ppbus)) {
@@ -347,7 +347,7 @@ ppiread(struct cdev *dev, struct uio *uio, int ioflag)
* time to terminate its interrupt
*/
tsleep(ppi, PPBPRI, "ppiread", 2*hz);
-
+
if ((error = ppb_1284_negociate(ppbus,
ppi->ppi_mode = PPB_BYTE, 0)))
return (error);
@@ -411,7 +411,7 @@ ppiwrite(struct cdev *dev, struct uio *uio, int ioflag)
#ifdef PERIPH_1284
struct ppi_data *ppi = dev->si_drv1;
device_t ppidev = ppi->ppi_device;
- device_t ppbus = device_get_parent(ppidev);
+ device_t ppbus = device_get_parent(ppidev);
int len, error = 0, sent;
#if 0
@@ -548,7 +548,7 @@ ppiioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *t
error = ENOTTY;
break;
}
-
+
return (error);
}
OpenPOWER on IntegriCloud