Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/emips/ebus - KNF, remove arg names in prototype decls



details:   https://anonhg.NetBSD.org/src/rev/4c88e283584b
branches:  trunk
changeset: 765960:4c88e283584b
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jun 12 03:57:09 2011 +0000

description:
- KNF, remove arg names in prototype decls
- use device_t and cfdata_t
- use uint32_t rather than u_int32_t (XXX should be paddr_t here?)

diffstat:

 sys/arch/emips/ebus/ebusvar.h |  21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)

diffs (36 lines):

diff -r 0e6d80f5f139 -r 4c88e283584b sys/arch/emips/ebus/ebusvar.h
--- a/sys/arch/emips/ebus/ebusvar.h     Sun Jun 12 03:52:13 2011 +0000
+++ b/sys/arch/emips/ebus/ebusvar.h     Sun Jun 12 03:57:09 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ebusvar.h,v 1.1 2011/01/26 01:18:50 pooka Exp $        */
+/*     $NetBSD: ebusvar.h,v 1.2 2011/06/12 03:57:09 tsutsui Exp $      */
 
 #ifndef _EMIPS_EBUS_EBUSVAR_H_
 #define _EMIPS_EBUS_EBUSVAR_H_
@@ -26,16 +26,17 @@
  * Arguments used to attach devices to an ebus
  */
 struct ebus_attach_args {
-       const char *ia_name;         /* device name */
-       int             ia_cookie;       /* device cookie */
-       u_int32_t   ia_paddr;        /* device address (PHYSICAL) */
-    void       *ia_vaddr;        /* device address (VIRTUAL) */
-       int             ia_basz;         /* device size (for min regset at probe, else 0) */
+       const char *ia_name;    /* device name */
+       int ia_cookie;          /* device cookie */
+       uint32_t ia_paddr;      /* device address (PHYSICAL) */
+       void *ia_vaddr;         /* device address (VIRTUAL) */
+       int ia_basz;            /* device size
+                                  (for min regset at probe, else 0) */
 };
 
-void   ebusattach (struct device *, struct device *, void *);
-int        ebusprint (void *, const char *);
-void   ebus_intr_establish (struct device *, void * cookie, int level,
-           int (*handler)(void *, void *), void *arg);
+void   ebusattach(device_t , device_t , void *);
+int    ebusprint(void *, const char *);
+void   ebus_intr_establish(device_t , void *, int,
+           int (*)(void *, void *), void *);
 
 #endif /* !_EMIPS_EBUS_EBUSVAR_H_ */



Home | Main Index | Thread Index | Old Index