summaryrefslogtreecommitdiffstats
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-03-23 16:01:49 +0000
committerbde <bde@FreeBSD.org>2002-03-23 16:01:49 +0000
commit8e5d7bb37a4e4d8ae1e1fefe6ad47b7c8865400d (patch)
treebd7beb118d2c1429655390b451bdab3ec851ab01 /sys/dev/cy
parent82395b7295123f4d9a786ebd89495ef101103a61 (diff)
downloadFreeBSD-src-8e5d7bb37a4e4d8ae1e1fefe6ad47b7c8865400d.zip
FreeBSD-src-8e5d7bb37a4e4d8ae1e1fefe6ad47b7c8865400d.tar.gz
Fixed some style bugs in the removal of __P(()). The main ones were
not removing tabs before "__P((", and not outdenting continuation lines to preserve non-KNF lining up of code with parentheses. Switch to KNF formatting and/or rewrap the whole prototype in some cases.
Diffstat (limited to 'sys/dev/cy')
-rw-r--r--sys/dev/cy/cy.c45
-rw-r--r--sys/dev/cy/cy_isa.c45
2 files changed, 44 insertions, 46 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index ee164d8..dc523c2 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -344,38 +344,37 @@ struct com_s {
};
/* PCI driver entry point. */
-int cyattach_common (cy_addr cy_iobase, int cy_align);
+int cyattach_common(cy_addr cy_iobase, int cy_align);
ointhand2_t siointr;
-static int cy_units (cy_addr cy_iobase, int cy_align);
-static int sioattach (struct isa_device *dev);
+static int cy_units(cy_addr cy_iobase, int cy_align);
+static int sioattach(struct isa_device *dev);
static void cd1400_channel_cmd(struct com_s *com, int cmd);
static void cd1400_channel_cmd_wait(struct com_s *com);
-static void cd_etc (struct com_s *com, int etc);
-static int cd_getreg (struct com_s *com, int reg);
-static void cd_setreg (struct com_s *com, int reg, int val);
+static void cd_etc(struct com_s *com, int etc);
+static int cd_getreg(struct com_s *com, int reg);
+static void cd_setreg(struct com_s *com, int reg, int val);
static timeout_t siodtrwakeup;
-static void comhardclose (struct com_s *com);
-static void sioinput (struct com_s *com);
+static void comhardclose(struct com_s *com);
+static void sioinput(struct com_s *com);
#if 0
-static void siointr1 (struct com_s *com);
-#endif
-static int commctl (struct com_s *com, int bits, int how);
-static int comparam (struct tty *tp, struct termios *t);
-static void siopoll (void *arg);
-static int sioprobe (struct isa_device *dev);
-static void siosettimeout (void);
-static int siosetwater (struct com_s *com, speed_t speed);
-static int comspeed (speed_t speed, u_long cy_clock,
- int *prescaler_io);
-static void comstart (struct tty *tp);
-static void comstop (struct tty *tp, int rw);
+static void siointr1(struct com_s *com);
+#endif
+static int commctl(struct com_s *com, int bits, int how);
+static int comparam(struct tty *tp, struct termios *t);
+static void siopoll(void *arg);
+static int sioprobe(struct isa_device *dev);
+static void siosettimeout(void);
+static int siosetwater(struct com_s *com, speed_t speed);
+static int comspeed(speed_t speed, u_long cy_clock, int *prescaler_io);
+static void comstart(struct tty *tp);
+static void comstop(struct tty *tp, int rw);
static timeout_t comwakeup;
-static void disc_optim (struct tty *tp, struct termios *t,
- struct com_s *com);
+static void disc_optim(struct tty *tp, struct termios *t,
+ struct com_s *com);
#ifdef CyDebug
-void cystatus (int unit);
+void cystatus(int unit);
#endif
static char driver_name[] = "cy";
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index ee164d8..dc523c2 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -344,38 +344,37 @@ struct com_s {
};
/* PCI driver entry point. */
-int cyattach_common (cy_addr cy_iobase, int cy_align);
+int cyattach_common(cy_addr cy_iobase, int cy_align);
ointhand2_t siointr;
-static int cy_units (cy_addr cy_iobase, int cy_align);
-static int sioattach (struct isa_device *dev);
+static int cy_units(cy_addr cy_iobase, int cy_align);
+static int sioattach(struct isa_device *dev);
static void cd1400_channel_cmd(struct com_s *com, int cmd);
static void cd1400_channel_cmd_wait(struct com_s *com);
-static void cd_etc (struct com_s *com, int etc);
-static int cd_getreg (struct com_s *com, int reg);
-static void cd_setreg (struct com_s *com, int reg, int val);
+static void cd_etc(struct com_s *com, int etc);
+static int cd_getreg(struct com_s *com, int reg);
+static void cd_setreg(struct com_s *com, int reg, int val);
static timeout_t siodtrwakeup;
-static void comhardclose (struct com_s *com);
-static void sioinput (struct com_s *com);
+static void comhardclose(struct com_s *com);
+static void sioinput(struct com_s *com);
#if 0
-static void siointr1 (struct com_s *com);
-#endif
-static int commctl (struct com_s *com, int bits, int how);
-static int comparam (struct tty *tp, struct termios *t);
-static void siopoll (void *arg);
-static int sioprobe (struct isa_device *dev);
-static void siosettimeout (void);
-static int siosetwater (struct com_s *com, speed_t speed);
-static int comspeed (speed_t speed, u_long cy_clock,
- int *prescaler_io);
-static void comstart (struct tty *tp);
-static void comstop (struct tty *tp, int rw);
+static void siointr1(struct com_s *com);
+#endif
+static int commctl(struct com_s *com, int bits, int how);
+static int comparam(struct tty *tp, struct termios *t);
+static void siopoll(void *arg);
+static int sioprobe(struct isa_device *dev);
+static void siosettimeout(void);
+static int siosetwater(struct com_s *com, speed_t speed);
+static int comspeed(speed_t speed, u_long cy_clock, int *prescaler_io);
+static void comstart(struct tty *tp);
+static void comstop(struct tty *tp, int rw);
static timeout_t comwakeup;
-static void disc_optim (struct tty *tp, struct termios *t,
- struct com_s *com);
+static void disc_optim(struct tty *tp, struct termios *t,
+ struct com_s *com);
#ifdef CyDebug
-void cystatus (int unit);
+void cystatus(int unit);
#endif
static char driver_name[] = "cy";
OpenPOWER on IntegriCloud