Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/luna68k/stand/boot Remove unused function members f...



details:   https://anonhg.NetBSD.org/src/rev/f53579dc3607
branches:  trunk
changeset: 783944:f53579dc3607
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jan 13 04:39:28 2013 +0000

description:
Remove unused function members from struct driver.
This makes adding other drivers easier.

diffstat:

 sys/arch/luna68k/stand/boot/device.h |   5 +----
 sys/arch/luna68k/stand/boot/sc.c     |  33 ++-------------------------------
 sys/arch/luna68k/stand/boot/sd.c     |  28 ++--------------------------
 3 files changed, 5 insertions(+), 61 deletions(-)

diffs (128 lines):

diff -r 5c1b6ca3032d -r f53579dc3607 sys/arch/luna68k/stand/boot/device.h
--- a/sys/arch/luna68k/stand/boot/device.h      Sun Jan 13 01:15:02 2013 +0000
+++ b/sys/arch/luna68k/stand/boot/device.h      Sun Jan 13 04:39:28 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: device.h,v 1.1 2013/01/05 17:44:24 tsutsui Exp $       */
+/*     $NetBSD: device.h,v 1.2 2013/01/13 04:39:28 tsutsui Exp $       */
 
 /*
  * Copyright (c) 1992 OMRON Corporation.
@@ -73,10 +73,7 @@
 struct driver {
        int     (*d_init)(void *);
        char    *d_name;
-       int     (*d_start)(void);
-       int     (*d_go)(void);
        int     (*d_intr)(void);
-       int     (*d_done)(void);
 };
 
 struct hp_ctlr {
diff -r 5c1b6ca3032d -r f53579dc3607 sys/arch/luna68k/stand/boot/sc.c
--- a/sys/arch/luna68k/stand/boot/sc.c  Sun Jan 13 01:15:02 2013 +0000
+++ b/sys/arch/luna68k/stand/boot/sc.c  Sun Jan 13 04:39:28 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sc.c,v 1.1 2013/01/05 17:44:24 tsutsui Exp $   */
+/*     $NetBSD: sc.c,v 1.2 2013/01/13 04:39:28 tsutsui Exp $   */
 
 /*
  * Copyright (c) 1992 OMRON Corporation.
@@ -96,12 +96,9 @@
 static int scrun(int, int, u_char *, int, u_char *, int, volatile int *);
 static int scfinish(int);
 static void scabort(struct scsi_softc *, struct scsidevice *);
-static int scstart(void);
-static int scgo(void);
-static int scdone(void);
 
 struct driver scdriver = {
-       scinit, "sc", scstart, scgo, scintr, scdone
+       scinit, "sc", scintr,
 };
 
 struct scsi_softc scsi_softc[NSC];
@@ -523,32 +520,6 @@
 
 
 /*
- * ????
- */
-
-int
-scstart(void)
-{
-
-       return 0;
-}
-
-int
-scgo(void)
-{
-
-       return 0;
-}
-
-int
-scdone(void)
-{
-
-       return 0;
-}
-
-
-/*
  * Interrupt Routine
  */
 
diff -r 5c1b6ca3032d -r f53579dc3607 sys/arch/luna68k/stand/boot/sd.c
--- a/sys/arch/luna68k/stand/boot/sd.c  Sun Jan 13 01:15:02 2013 +0000
+++ b/sys/arch/luna68k/stand/boot/sd.c  Sun Jan 13 04:39:28 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sd.c,v 1.1 2013/01/05 17:44:24 tsutsui Exp $   */
+/*     $NetBSD: sd.c,v 1.2 2013/01/13 04:39:28 tsutsui Exp $   */
 
 /*
  * Copyright (c) 1992 OMRON Corporation.
@@ -106,13 +106,10 @@
 };
  
 static int sdinit(void *);
-static int sdstart(void);
-static int sdgo(void);
-static int sdintr(void);
 static int sdident(struct sd_softc *, struct hp_device *);
 
 struct driver sddriver = {
-       sdinit, "sd", sdstart, sdgo, sdintr,
+       sdinit, "sd", NULL,
 };
 
 struct sd_softc sd_softc[NSD];
@@ -364,27 +361,6 @@
        return 0;
 }
 
-int
-sdstart(void)
-{
-
-       return 0;
-}
-
-int
-sdgo(void)
-{
-
-       return 0;
-}
-
-int
-sdintr(void)
-{
-
-       return 0;
-}
-
 #if 0
 int
 sdread(dev_t dev, u_int blk, u_int nblk, u_char *buff, u_int len)



Home | Main Index | Thread Index | Old Index