Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/atari/dev extern inline -> static inline



details:   https://anonhg.NetBSD.org/src/rev/55b349b3952a
branches:  trunk
changeset: 754030:55b349b3952a
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Apr 17 12:54:29 2010 +0000

description:
extern inline -> static inline

diffstat:

 sys/arch/atari/dev/atari5380.c |  40 ++++++++++++++++++++--------------------
 sys/arch/atari/dev/ncr5380.c   |  19 ++++++++++++-------
 2 files changed, 32 insertions(+), 27 deletions(-)

diffs (243 lines):

diff -r 73c164c24e6e -r 55b349b3952a sys/arch/atari/dev/atari5380.c
--- a/sys/arch/atari/dev/atari5380.c    Sat Apr 17 12:44:38 2010 +0000
+++ b/sys/arch/atari/dev/atari5380.c    Sat Apr 17 12:54:29 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atari5380.c,v 1.55 2010/04/13 13:30:37 tsutsui Exp $   */
+/*     $NetBSD: atari5380.c,v 1.56 2010/04/17 12:54:29 tsutsui Exp $   */
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atari5380.c,v 1.55 2010/04/13 13:30:37 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atari5380.c,v 1.56 2010/04/17 12:54:29 tsutsui Exp $");
 
 #include "opt_atariscsi.h"
 
@@ -306,7 +306,7 @@
        SCSI_5380->scsi_5380[(rnum << 1) | 1] = val;
 }
 
-extern inline void
+static inline void
 scsi_tt_ienable(void)
 {
 
@@ -315,7 +315,7 @@
        single_inst_bset_b(MFP2->mf_imra, IA_SCSI);
 }
 
-extern inline void
+static inline void
 scsi_tt_idisable(void)
 {
 
@@ -324,7 +324,7 @@
        single_inst_bclr_b(MFP2->mf_imra, IA_SCSI);
 }
 
-extern inline void
+static inline void
 scsi_tt_clr_ipend(void)
 {
        int tmp;
@@ -718,21 +718,21 @@
        DMA->dma_data = val;
 }
 
-extern inline void
+static inline void
 scsi_falcon_ienable(void)
 {
 
        single_inst_bset_b(MFP->mf_imrb, IB_DINT);
 }
 
-extern inline void
+static inline void
 scsi_falcon_idisable(void)
 {
 
        single_inst_bclr_b(MFP->mf_imrb, IB_DINT);
 }
 
-extern inline void
+static inline void
 scsi_falcon_clr_ipend(void)
 {
        int tmp;
@@ -741,7 +741,7 @@
        rem_sicallback((si_farg)ncr_ctrl_intr);
 }
 
-extern inline int
+static inline int
 scsi_falcon_ipending(void)
 {
 
@@ -787,7 +787,7 @@
 
 static int falcon_lock = 0;
 
-extern inline int
+static inline int
 falcon_claimed_dma(void)
 {
 
@@ -805,7 +805,7 @@
        return 1;
 }
 
-extern inline void
+static inline void
 falcon_reconsider_dma(void)
 {
 
@@ -990,7 +990,7 @@
        }
 }
 
-extern inline void
+static inline void
 scsi_ienable(void)
 {
 
@@ -1000,7 +1000,7 @@
                scsi_tt_ienable();
 }
 
-extern inline void
+static inline void
 scsi_idisable(void)
 {
 
@@ -1010,7 +1010,7 @@
                scsi_tt_idisable();
 }
 
-extern inline void
+static inline void
 scsi_clr_ipend(void)
 {
 
@@ -1020,7 +1020,7 @@
                scsi_tt_clr_ipend();
 }
 
-extern inline int
+static inline int
 scsi_ipending(void)
 {
 
@@ -1030,7 +1030,7 @@
                return GET_TT_REG(NCR5380_DMSTAT) & SC_IRQ_SET;
 }
 
-extern inline void
+static inline void
 scsi_dma_setup(SC_REQ *reqp, u_int phase, uint8_t mbase)
 {
 
@@ -1040,7 +1040,7 @@
                scsi_tt_dmasetup(reqp, phase, mbase);
 }
 
-extern inline int
+static inline int
 wrong_dma_range(SC_REQ *reqp, struct dma_chain *dm)
 {
 
@@ -1050,7 +1050,7 @@
                return tt_wrong_dma_range(reqp, dm);
 }
 
-extern inline int
+static inline int
 poll_edma(SC_REQ *reqp)
 {
 
@@ -1060,7 +1060,7 @@
                return tt_poll_edma(reqp);
 }
 
-extern inline int
+static inline int
 get_dma_result(SC_REQ *reqp, u_long *bytes_left)
 {
 
@@ -1070,7 +1070,7 @@
                return tt_get_dma_result(reqp, bytes_left);
 }
 
-extern inline int
+static inline int
 can_access_5380(void)
 {
 
diff -r 73c164c24e6e -r 55b349b3952a sys/arch/atari/dev/ncr5380.c
--- a/sys/arch/atari/dev/ncr5380.c      Sat Apr 17 12:44:38 2010 +0000
+++ b/sys/arch/atari/dev/ncr5380.c      Sat Apr 17 12:54:29 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr5380.c,v 1.67 2010/04/13 13:30:37 tsutsui Exp $     */
+/*     $NetBSD: ncr5380.c,v 1.68 2010/04/17 12:54:29 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.67 2010/04/13 13:30:37 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.68 2010/04/17 12:54:29 tsutsui Exp $");
 
 /*
  * Bit mask of targets you want debugging to be shown
@@ -96,7 +96,8 @@
  * some cases (especially when using my tapedrive, a Tandberg 3600) the
  * device is busy internally and the first SCSI-phase will be delayed.
  */
-extern inline int wait_req_true(void)
+static inline int
+wait_req_true(void)
 {
        int timeout = 250000;
 
@@ -109,7 +110,8 @@
  * Wait for request-line to become inactive. When it doesn't return 0.
  * Otherwise return != 0.
  */
-extern inline int wait_req_false(void)
+static inline int
+wait_req_false(void)
 {
        int timeout = 250000;
 
@@ -118,20 +120,23 @@
        return (GET_5380_REG(NCR5380_IDSTAT) & SC_S_REQ) == 0;
 }
 
-extern inline void ack_message(void)
+static inline void
+ack_message(void)
 {
 
        SET_5380_REG(NCR5380_ICOM, 0);
 }
 
-extern inline void nack_message(SC_REQ *reqp, u_char msg)
+static inline void
+nack_message(SC_REQ *reqp, u_char msg)
 {
 
        SET_5380_REG(NCR5380_ICOM, SC_A_ATN);
        reqp->msgout = msg;
 }
 
-extern inline void finish_req(SC_REQ *reqp)
+static inline void
+finish_req(SC_REQ *reqp)
 {
        int                     sps;
        struct scsipi_xfer      *xs = reqp->xs;



Home | Main Index | Thread Index | Old Index