Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Export accessops functions to allow overriding th...



details:   https://anonhg.NetBSD.org/src/rev/e9d059cd08b0
branches:  trunk
changeset: 796965:e9d059cd08b0
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Jun 29 04:08:43 2014 +0000

description:
Export accessops functions to allow overriding them in MD attachment.

diffstat:

 sys/dev/ic/sti.c    |  12 ++----------
 sys/dev/ic/stivar.h |  11 ++++++++++-
 2 files changed, 12 insertions(+), 11 deletions(-)

diffs (58 lines):

diff -r 0df2c73c0155 -r e9d059cd08b0 sys/dev/ic/sti.c
--- a/sys/dev/ic/sti.c  Sun Jun 29 04:04:02 2014 +0000
+++ b/sys/dev/ic/sti.c  Sun Jun 29 04:08:43 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sti.c,v 1.17 2014/04/20 04:12:54 tsutsui Exp $ */
+/*     $NetBSD: sti.c,v 1.18 2014/06/29 04:08:43 tsutsui Exp $ */
 
 /*     $OpenBSD: sti.c,v 1.61 2009/09/05 14:09:35 miod Exp $   */
 
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sti.c,v 1.17 2014/04/20 04:12:54 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sti.c,v 1.18 2014/06/29 04:08:43 tsutsui Exp $");
 
 #include "wsdisplay.h"
 
@@ -90,14 +90,6 @@
        sti_alloc_attr
 };
 
-int sti_ioctl(void *, void *, u_long, void *, int, struct lwp *);
-paddr_t sti_mmap(void *, void *, off_t, int);
-int sti_alloc_screen(void *, const struct wsscreen_descr *,
-       void **, int *, int *, long *);
-       void sti_free_screen(void *, void *);
-int sti_show_screen(void *, void *, int, void (*cb)(void *, int, int), void *);
-int sti_load_font(void *, void *, struct wsdisplay_font *);
-
 const struct wsdisplay_accessops sti_accessops = {
        sti_ioctl,
        sti_mmap,
diff -r 0df2c73c0155 -r e9d059cd08b0 sys/dev/ic/stivar.h
--- a/sys/dev/ic/stivar.h       Sun Jun 29 04:04:02 2014 +0000
+++ b/sys/dev/ic/stivar.h       Sun Jun 29 04:08:43 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stivar.h,v 1.8 2014/04/20 04:12:54 tsutsui Exp $       */
+/*     $NetBSD: stivar.h,v 1.9 2014/06/29 04:08:43 tsutsui Exp $       */
 
 /*     $OpenBSD: stivar.h,v 1.24 2009/02/06 22:51:04 miod Exp $        */
 
@@ -131,6 +131,15 @@
 void   sti_end_attach(struct sti_softc *);
 u_int  sti_rom_size(bus_space_tag_t, bus_space_handle_t);
 
+int    sti_ioctl(void *, void *, u_long, void *, int, struct lwp *);
+paddr_t        sti_mmap(void *, void *, off_t, int);
+int    sti_alloc_screen(void *, const struct wsscreen_descr *,
+           void **, int *, int *, long *);
+void   sti_free_screen(void *, void *);
+int    sti_show_screen(void *, void *, int, void (*cb)(void *, int, int),
+           void *);
+int    sti_load_font(void *, void *, struct wsdisplay_font *);
+
 int    sti_cnattach(struct sti_rom *, struct sti_screen *, bus_space_tag_t,
            bus_addr_t *, u_int);
 



Home | Main Index | Thread Index | Old Index