summaryrefslogtreecommitdiffstats
path: root/sys/dev/mse/mse_cbus.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-04-08 05:22:58 +0000
committerimp <imp@FreeBSD.org>2005-04-08 05:22:58 +0000
commit4743d37fb181266b14588ddda51801ef89817804 (patch)
tree6d7434ddce6b73e7ab6bc5bdf3953b96222c3ba6 /sys/dev/mse/mse_cbus.c
parent1ab7d22f97ea0829f4ecd7575ba5e8c1bea12bca (diff)
downloadFreeBSD-src-4743d37fb181266b14588ddda51801ef89817804.zip
FreeBSD-src-4743d37fb181266b14588ddda51801ef89817804.tar.gz
Minor style(9) changes
o use prototype definition o use mse_{isa,cbus}_{probe,attach,detach} in preference to mse_{probe,attach,detach}.
Diffstat (limited to 'sys/dev/mse/mse_cbus.c')
-rw-r--r--sys/dev/mse/mse_cbus.c47
1 files changed, 17 insertions, 30 deletions
diff --git a/sys/dev/mse/mse_cbus.c b/sys/dev/mse/mse_cbus.c
index 8a02d30..e5e06b5 100644
--- a/sys/dev/mse/mse_cbus.c
+++ b/sys/dev/mse/mse_cbus.c
@@ -90,14 +90,14 @@
#include <dev/mse/msevar.h>
-static int mse_probe(device_t dev);
-static int mse_attach(device_t dev);
-static int mse_detach(device_t dev);
+static int mse_cbus_probe(device_t dev);
+static int mse_cbus_attach(device_t dev);
+static int mse_cbus_detach(device_t dev);
static device_method_t mse_methods[] = {
- DEVMETHOD(device_probe, mse_probe),
- DEVMETHOD(device_attach, mse_attach),
- DEVMETHOD(device_detach, mse_detach),
+ DEVMETHOD(device_probe, mse_cbus_probe),
+ DEVMETHOD(device_attach, mse_cbus_attach),
+ DEVMETHOD(device_detach, mse_cbus_detach),
{ 0, 0 }
};
@@ -151,9 +151,8 @@ static struct mse_types mse_types[] = {
{ 0, },
};
-static int
-mse_probe(dev)
- device_t dev;
+static int
+mse_cbus_probe(device_t dev)
{
mse_softc_t *sc;
int error;
@@ -201,9 +200,8 @@ mse_probe(dev)
return ENXIO;
}
-static int
-mse_attach(dev)
- device_t dev;
+static int
+mse_cbus_attach(device_t dev)
{
mse_softc_t *sc;
int rid;
@@ -225,9 +223,8 @@ mse_attach(dev)
return (mse_common_attach(dev));
}
-static int
-mse_detach(dev)
- device_t dev;
+static int
+mse_cbus_detach(device_t dev)
{
mse_softc_t *sc;
int rid;
@@ -256,9 +253,7 @@ mse_detach(dev)
* (do not enable interrupts)
*/
static int
-mse_probe98m(dev, sc)
- device_t dev;
- mse_softc_t *sc;
+mse_probe98m(device_t dev, mse_softc_t *sc)
{
/* mode set */
bus_space_write_1(sc->sc_iot, sc->sc_ioh, MODE, 0x93);
@@ -278,9 +273,7 @@ mse_probe98m(dev, sc)
* Initialize PC98 bus mouse and enable interrupts.
*/
static void
-mse_enable98m(tag, handle)
- bus_space_tag_t tag;
- bus_space_handle_t handle;
+mse_enable98m(bus_space_tag_t tag, bus_space_handle_t handle)
{
bus_space_write_1(tag, handle, INT, INT_ENABLE); /* INT enable */
bus_space_write_1(tag, handle, HC, HC_NO_CLEAR); /* HC = 0 */
@@ -291,9 +284,7 @@ mse_enable98m(tag, handle)
* Disable interrupts for PC98 Bus mouse.
*/
static void
-mse_disable98m(tag, handle)
- bus_space_tag_t tag;
- bus_space_handle_t handle;
+mse_disable98m(bus_space_tag_t tag, bus_space_handle_t handle)
{
bus_space_write_1(tag, handle, INT, INT_DISABLE); /* INT disable */
bus_space_write_1(tag, handle, HC, HC_NO_CLEAR); /* HC = 0 */
@@ -304,12 +295,8 @@ mse_disable98m(tag, handle)
* Get current dx, dy and up/down button state.
*/
static void
-mse_get98m(tag, handle, dx, dy, but)
- bus_space_tag_t tag;
- bus_space_handle_t handle;
- int *dx;
- int *dy;
- int *but;
+mse_get98m(bus_space_tag_t tag, bus_space_handle_t handle, int *dx, int *dy,
+ int *but)
{
register char x, y;
OpenPOWER on IntegriCloud