summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-05-20 16:29:22 +0000
committerimp <imp@FreeBSD.org>2009-05-20 16:29:22 +0000
commitbc7a5156495a3f9d52f234833c8b80965e0ddd80 (patch)
treef6dc18c08a3f5ab57a1e903056b6c3885b73417a /sys/i386
parente7900df956f7e2bffe05dde2db6865cb9d5bbfcb (diff)
downloadFreeBSD-src-bc7a5156495a3f9d52f234833c8b80965e0ddd80.zip
FreeBSD-src-bc7a5156495a3f9d52f234833c8b80965e0ddd80.tar.gz
Some minor style changes:
o Convert K&R function definitions to ANSI o Eliminate spaces/tabs that should have been deleted as part of the de__P efforts o Use struct thread * in preference to d_thread_t *.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/bios/smapi.c36
1 files changed, 14 insertions, 22 deletions
diff --git a/sys/i386/bios/smapi.c b/sys/i386/bios/smapi.c
index bb0b2bf..e572664 100644
--- a/sys/i386/bios/smapi.c
+++ b/sys/i386/bios/smapi.c
@@ -58,7 +58,7 @@ __FBSDID("$FreeBSD$");
#define ADDR2HDR(addr) ((struct smapi_bios_header *)BIOS_PADDRTOVADDR(addr))
struct smapi_softc {
- struct cdev *cdev;
+ struct cdev * cdev;
device_t dev;
struct resource * res;
int rid;
@@ -82,27 +82,22 @@ static struct cdevsw smapi_cdevsw = {
.d_flags = D_MEM | D_NEEDGIANT,
};
-static void smapi_identify (driver_t *, device_t);
-static int smapi_probe (device_t);
-static int smapi_attach (device_t);
-static int smapi_detach (device_t);
-static int smapi_modevent (module_t, int, void *);
+static void smapi_identify(driver_t *, device_t);
+static int smapi_probe(device_t);
+static int smapi_attach(device_t);
+static int smapi_detach(device_t);
+static int smapi_modevent(module_t, int, void *);
-static int smapi_header_cksum (struct smapi_bios_header *);
+static int smapi_header_cksum(struct smapi_bios_header *);
-extern int smapi32 (struct smapi_bios_parameter *,
- struct smapi_bios_parameter *);
-extern int smapi32_new (u_long, u_short,
- struct smapi_bios_parameter *,
- struct smapi_bios_parameter *);
+extern int smapi32(struct smapi_bios_parameter *,
+ struct smapi_bios_parameter *);
+extern int smapi32_new(u_long, u_short,
+ struct smapi_bios_parameter *,
+ struct smapi_bios_parameter *);
static int
-smapi_ioctl (dev, cmd, data, fflag, td)
- struct cdev *dev;
- u_long cmd;
- caddr_t data;
- int fflag;
- d_thread_t * td;
+smapi_ioctl (struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td)
{
struct smapi_softc *sc;
int error;
@@ -283,10 +278,7 @@ smapi_detach (device_t dev)
}
static int
-smapi_modevent (mod, what, arg)
- module_t mod;
- int what;
- void * arg;
+smapi_modevent (module_t mod, int what, void *arg)
{
device_t * devs;
int count;
OpenPOWER on IntegriCloud