Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sgimips/include Add more platform hooks in platform...



details:   https://anonhg.NetBSD.org/src/rev/2825db3f557e
branches:  trunk
changeset: 557775:2825db3f557e
user:      sekiya <sekiya%NetBSD.org@localhost>
date:      Sun Jan 18 00:53:49 2004 +0000

description:
Add more platform hooks in platform struct.

diffstat:

 sys/arch/sgimips/include/sysconf.h |  19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r b76e2a19d479 -r 2825db3f557e sys/arch/sgimips/include/sysconf.h
--- a/sys/arch/sgimips/include/sysconf.h        Sun Jan 18 00:50:08 2004 +0000
+++ b/sys/arch/sgimips/include/sysconf.h        Sun Jan 18 00:53:49 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysconf.h,v 1.4 2004/01/13 14:18:56 sekiya Exp $       */
+/*     $NetBSD: sysconf.h,v 1.5 2004/01/18 00:53:49 sekiya Exp $       */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -58,18 +58,27 @@
         * Platform Specific Function Hooks
         *      bus_reset       -       clear memory error condition
         *      cons_init       -       console initialization
-        *      iointr          -       I/O interrupt handler
         *      intr_establish  -       establish interrupt handler
-        *      intr_disestablish -     disestablish interrupt handler
         *      clkread         -       interporate HZ with hi-resolution timer
+        *      watchdog_reset  -       reset watchdog timer
+        *      watchdog_disable-       disable watchdog timer
+        *      watchdog_enable -       enable watchdog timer
+        *      intr0-intr5     -       CPU interrupt handler
         */
 
        void    (*bus_reset)(void);
        void    (*cons_init)(void);
-       void    (*iointr)(unsigned, unsigned, unsigned, unsigned);
-       void    (*intr_establish)(int , int, int (*)(void *), void *);
+       void    *(*intr_establish)(int , int, int (*)(void *), void *);
        unsigned long (*clkread) (void);
        void    (*watchdog_reset)(void);
+       void    (*watchdog_disable)(void);
+       void    (*watchdog_enable)(void);
+       void    (*intr0)(u_int32_t, u_int32_t, u_int32_t, u_int32_t);
+       void    (*intr1)(u_int32_t, u_int32_t, u_int32_t, u_int32_t);
+       void    (*intr2)(u_int32_t, u_int32_t, u_int32_t, u_int32_t);
+       void    (*intr3)(u_int32_t, u_int32_t, u_int32_t, u_int32_t);
+       void    (*intr4)(u_int32_t, u_int32_t, u_int32_t, u_int32_t);
+       void    (*intr5)(u_int32_t, u_int32_t, u_int32_t, u_int32_t);
 };
 
 extern struct platform platform;



Home | Main Index | Thread Index | Old Index