diff options
author | bde <bde@FreeBSD.org> | 1996-06-23 17:12:05 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-06-23 17:12:05 +0000 |
commit | c2649372bd1be425d5c2b51f5c5b82b6a8285046 (patch) | |
tree | 495ad4fca0ddcee91d5d56970341991765eb7505 | |
parent | d8b3bab318e09885e1f8a85fe550dd15e0dc3950 (diff) | |
download | FreeBSD-src-c2649372bd1be425d5c2b51f5c5b82b6a8285046.zip FreeBSD-src-c2649372bd1be425d5c2b51f5c5b82b6a8285046.tar.gz |
Moved declarations of static functions to the correct file. This fixes
hundreds of warnings from -Wunused in lkm/syscons/*.
-rw-r--r-- | sys/dev/syscons/syscons.c | 35 | ||||
-rw-r--r-- | sys/dev/syscons/syscons.h | 39 | ||||
-rw-r--r-- | sys/i386/isa/syscons.c | 35 | ||||
-rw-r--r-- | sys/i386/isa/syscons.h | 39 | ||||
-rw-r--r-- | sys/isa/syscons.c | 35 | ||||
-rw-r--r-- | sys/isa/syscons.h | 39 |
6 files changed, 111 insertions, 111 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index d32458b..76e9a20 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.152 1996/06/21 07:19:17 sos Exp $ + * $Id: syscons.c,v 1.153 1996/06/21 11:31:09 sos Exp $ */ #include "sc.h" @@ -153,6 +153,39 @@ u_short *Crtat; ((scp->history) + ((((pointer) - (scp->history)) + (scp->history_size)\ + (offset)) % (scp->history_size))) +static void scinit(void); +static u_int scgetc(int noblock); +static scr_stat *get_scr_stat(dev_t dev); +static scr_stat *alloc_scp(void); +static void init_scp(scr_stat *scp); +static int get_scr_num(void); +static void scrn_timer(void); +static void clear_screen(scr_stat *scp); +static int switch_scr(scr_stat *scp, u_int next_scr); +static void exchange_scr(void); +static inline void move_crsr(scr_stat *scp, int x, int y); +static void scan_esc(scr_stat *scp, u_char c); +static inline void draw_cursor(scr_stat *scp, int show); +static void ansi_put(scr_stat *scp, u_char *buf, int len); +static u_char *get_fstr(u_int c, u_int *len); +static void update_leds(int which); +static void history_to_screen(scr_stat *scp); +static int history_up_line(scr_stat *scp); +static int history_down_line(scr_stat *scp); +static void kbd_wait(void); +static void kbd_cmd(u_char command); +static void set_mode(scr_stat *scp); +static void set_vgaregs(char *modetable); +static void set_font_mode(void); +static void set_normal_mode(void); +static void copy_font(int operation, int font_type, char* font_image); +static void set_destructive_cursor(scr_stat *scp, int force); +static void reverse_mouse_cut(scr_stat *scp, int cut); +static void draw_mouse_image(scr_stat *scp); +static void save_palette(void); +static void do_bell(scr_stat *scp, int pitch, int duration); +static void blink_screen(scr_stat *scp); + struct isa_driver scdriver = { scprobe, scattach, "sc", 1 }; diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h index f128d9b..fa420f3 100644 --- a/sys/dev/syscons/syscons.h +++ b/sys/dev/syscons/syscons.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.h,v 1.15 1996/01/30 22:56:11 mpp Exp $ + * $Id: syscons.h,v 1.16 1996/06/21 07:19:18 sos Exp $ */ #ifndef _I386_ISA_SYSCONS_H_ @@ -178,40 +178,7 @@ typedef struct default_attr { int rev_color; /* reverse hardware color */ } default_attr; -/* function prototypes */ -static void scinit(void); -static u_int scgetc(int noblock); -static scr_stat *get_scr_stat(dev_t dev); -static scr_stat *alloc_scp(void); -static void init_scp(scr_stat *scp); -static int get_scr_num(void); -static void scrn_timer(void); -static void clear_screen(scr_stat *scp); -static int switch_scr(scr_stat *scp, u_int next_scr); -static void exchange_scr(void); -static inline void move_crsr(scr_stat *scp, int x, int y); -static void scan_esc(scr_stat *scp, u_char c); -static inline void draw_cursor(scr_stat *scp, int show); -static void ansi_put(scr_stat *scp, u_char *buf, int len); -static u_char *get_fstr(u_int c, u_int *len); -static void update_leds(int which); -static void history_to_screen(scr_stat *scp); -static int history_up_line(scr_stat *scp); -static int history_down_line(scr_stat *scp); -static void kbd_wait(void); -static void kbd_cmd(u_char command); -static void set_mode(scr_stat *scp); - void set_border(int color); -static void set_vgaregs(char *modetable); -static void set_font_mode(void); -static void set_normal_mode(void); -static void copy_font(int operation, int font_type, char* font_image); -static void set_destructive_cursor(scr_stat *scp, int force); -static void reverse_mouse_cut(scr_stat *scp, int cut); -static void draw_mouse_image(scr_stat *scp); -static void save_palette(void); - void load_palette(void); -static void do_bell(scr_stat *scp, int pitch, int duration); -static void blink_screen(scr_stat *scp); +void load_palette(void); +void set_border(int color); #endif /* !_I386_ISA_SYSCONS_H_ */ diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c index d32458b..76e9a20 100644 --- a/sys/i386/isa/syscons.c +++ b/sys/i386/isa/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.152 1996/06/21 07:19:17 sos Exp $ + * $Id: syscons.c,v 1.153 1996/06/21 11:31:09 sos Exp $ */ #include "sc.h" @@ -153,6 +153,39 @@ u_short *Crtat; ((scp->history) + ((((pointer) - (scp->history)) + (scp->history_size)\ + (offset)) % (scp->history_size))) +static void scinit(void); +static u_int scgetc(int noblock); +static scr_stat *get_scr_stat(dev_t dev); +static scr_stat *alloc_scp(void); +static void init_scp(scr_stat *scp); +static int get_scr_num(void); +static void scrn_timer(void); +static void clear_screen(scr_stat *scp); +static int switch_scr(scr_stat *scp, u_int next_scr); +static void exchange_scr(void); +static inline void move_crsr(scr_stat *scp, int x, int y); +static void scan_esc(scr_stat *scp, u_char c); +static inline void draw_cursor(scr_stat *scp, int show); +static void ansi_put(scr_stat *scp, u_char *buf, int len); +static u_char *get_fstr(u_int c, u_int *len); +static void update_leds(int which); +static void history_to_screen(scr_stat *scp); +static int history_up_line(scr_stat *scp); +static int history_down_line(scr_stat *scp); +static void kbd_wait(void); +static void kbd_cmd(u_char command); +static void set_mode(scr_stat *scp); +static void set_vgaregs(char *modetable); +static void set_font_mode(void); +static void set_normal_mode(void); +static void copy_font(int operation, int font_type, char* font_image); +static void set_destructive_cursor(scr_stat *scp, int force); +static void reverse_mouse_cut(scr_stat *scp, int cut); +static void draw_mouse_image(scr_stat *scp); +static void save_palette(void); +static void do_bell(scr_stat *scp, int pitch, int duration); +static void blink_screen(scr_stat *scp); + struct isa_driver scdriver = { scprobe, scattach, "sc", 1 }; diff --git a/sys/i386/isa/syscons.h b/sys/i386/isa/syscons.h index f128d9b..fa420f3 100644 --- a/sys/i386/isa/syscons.h +++ b/sys/i386/isa/syscons.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.h,v 1.15 1996/01/30 22:56:11 mpp Exp $ + * $Id: syscons.h,v 1.16 1996/06/21 07:19:18 sos Exp $ */ #ifndef _I386_ISA_SYSCONS_H_ @@ -178,40 +178,7 @@ typedef struct default_attr { int rev_color; /* reverse hardware color */ } default_attr; -/* function prototypes */ -static void scinit(void); -static u_int scgetc(int noblock); -static scr_stat *get_scr_stat(dev_t dev); -static scr_stat *alloc_scp(void); -static void init_scp(scr_stat *scp); -static int get_scr_num(void); -static void scrn_timer(void); -static void clear_screen(scr_stat *scp); -static int switch_scr(scr_stat *scp, u_int next_scr); -static void exchange_scr(void); -static inline void move_crsr(scr_stat *scp, int x, int y); -static void scan_esc(scr_stat *scp, u_char c); -static inline void draw_cursor(scr_stat *scp, int show); -static void ansi_put(scr_stat *scp, u_char *buf, int len); -static u_char *get_fstr(u_int c, u_int *len); -static void update_leds(int which); -static void history_to_screen(scr_stat *scp); -static int history_up_line(scr_stat *scp); -static int history_down_line(scr_stat *scp); -static void kbd_wait(void); -static void kbd_cmd(u_char command); -static void set_mode(scr_stat *scp); - void set_border(int color); -static void set_vgaregs(char *modetable); -static void set_font_mode(void); -static void set_normal_mode(void); -static void copy_font(int operation, int font_type, char* font_image); -static void set_destructive_cursor(scr_stat *scp, int force); -static void reverse_mouse_cut(scr_stat *scp, int cut); -static void draw_mouse_image(scr_stat *scp); -static void save_palette(void); - void load_palette(void); -static void do_bell(scr_stat *scp, int pitch, int duration); -static void blink_screen(scr_stat *scp); +void load_palette(void); +void set_border(int color); #endif /* !_I386_ISA_SYSCONS_H_ */ diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c index d32458b..76e9a20 100644 --- a/sys/isa/syscons.c +++ b/sys/isa/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.152 1996/06/21 07:19:17 sos Exp $ + * $Id: syscons.c,v 1.153 1996/06/21 11:31:09 sos Exp $ */ #include "sc.h" @@ -153,6 +153,39 @@ u_short *Crtat; ((scp->history) + ((((pointer) - (scp->history)) + (scp->history_size)\ + (offset)) % (scp->history_size))) +static void scinit(void); +static u_int scgetc(int noblock); +static scr_stat *get_scr_stat(dev_t dev); +static scr_stat *alloc_scp(void); +static void init_scp(scr_stat *scp); +static int get_scr_num(void); +static void scrn_timer(void); +static void clear_screen(scr_stat *scp); +static int switch_scr(scr_stat *scp, u_int next_scr); +static void exchange_scr(void); +static inline void move_crsr(scr_stat *scp, int x, int y); +static void scan_esc(scr_stat *scp, u_char c); +static inline void draw_cursor(scr_stat *scp, int show); +static void ansi_put(scr_stat *scp, u_char *buf, int len); +static u_char *get_fstr(u_int c, u_int *len); +static void update_leds(int which); +static void history_to_screen(scr_stat *scp); +static int history_up_line(scr_stat *scp); +static int history_down_line(scr_stat *scp); +static void kbd_wait(void); +static void kbd_cmd(u_char command); +static void set_mode(scr_stat *scp); +static void set_vgaregs(char *modetable); +static void set_font_mode(void); +static void set_normal_mode(void); +static void copy_font(int operation, int font_type, char* font_image); +static void set_destructive_cursor(scr_stat *scp, int force); +static void reverse_mouse_cut(scr_stat *scp, int cut); +static void draw_mouse_image(scr_stat *scp); +static void save_palette(void); +static void do_bell(scr_stat *scp, int pitch, int duration); +static void blink_screen(scr_stat *scp); + struct isa_driver scdriver = { scprobe, scattach, "sc", 1 }; diff --git a/sys/isa/syscons.h b/sys/isa/syscons.h index f128d9b..fa420f3 100644 --- a/sys/isa/syscons.h +++ b/sys/isa/syscons.h @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.h,v 1.15 1996/01/30 22:56:11 mpp Exp $ + * $Id: syscons.h,v 1.16 1996/06/21 07:19:18 sos Exp $ */ #ifndef _I386_ISA_SYSCONS_H_ @@ -178,40 +178,7 @@ typedef struct default_attr { int rev_color; /* reverse hardware color */ } default_attr; -/* function prototypes */ -static void scinit(void); -static u_int scgetc(int noblock); -static scr_stat *get_scr_stat(dev_t dev); -static scr_stat *alloc_scp(void); -static void init_scp(scr_stat *scp); -static int get_scr_num(void); -static void scrn_timer(void); -static void clear_screen(scr_stat *scp); -static int switch_scr(scr_stat *scp, u_int next_scr); -static void exchange_scr(void); -static inline void move_crsr(scr_stat *scp, int x, int y); -static void scan_esc(scr_stat *scp, u_char c); -static inline void draw_cursor(scr_stat *scp, int show); -static void ansi_put(scr_stat *scp, u_char *buf, int len); -static u_char *get_fstr(u_int c, u_int *len); -static void update_leds(int which); -static void history_to_screen(scr_stat *scp); -static int history_up_line(scr_stat *scp); -static int history_down_line(scr_stat *scp); -static void kbd_wait(void); -static void kbd_cmd(u_char command); -static void set_mode(scr_stat *scp); - void set_border(int color); -static void set_vgaregs(char *modetable); -static void set_font_mode(void); -static void set_normal_mode(void); -static void copy_font(int operation, int font_type, char* font_image); -static void set_destructive_cursor(scr_stat *scp, int force); -static void reverse_mouse_cut(scr_stat *scp, int cut); -static void draw_mouse_image(scr_stat *scp); -static void save_palette(void); - void load_palette(void); -static void do_bell(scr_stat *scp, int pitch, int duration); -static void blink_screen(scr_stat *scp); +void load_palette(void); +void set_border(int color); #endif /* !_I386_ISA_SYSCONS_H_ */ |