Deleted Added
full compact
syscons.h (8876) syscons.h (9484)
1/*-
2 * Copyright (c) 1995 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1995 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $Id: syscons.h,v 1.8 1995/04/23 10:15:38 bde Exp $
28 * $Id: syscons.h,v 1.9 1995/05/30 08:03:15 rgrimes Exp $
29 */
30
29 */
30
31#ifndef SYSCONS_H
32#define SYSCONS_H
31#ifndef _I386_ISA_SYSCONS_H_
32#define _I386_ISA_SYSCONS_H_
33
34/* vm things */
35#define ISMAPPED(pa, width) \
36 (((pa) <= (u_long)0x1000 - (width)) \
37 || ((pa) >= 0xa0000 && (pa) <= 0x100000 - (width)))
38#define pa_to_va(pa) (KERNBASE + (pa)) /* works if ISMAPPED(pa...) */
39
40/* printable chars */

--- 128 unchanged lines hidden (view full) ---

169int scprobe(struct isa_device *dev);
170int scattach(struct isa_device *dev);
171int scopen(dev_t dev, int flag, int mode, struct proc *p);
172int scclose(dev_t dev, int flag, int mode, struct proc *p);
173int scread(dev_t dev, struct uio *uio, int flag);
174int scwrite(dev_t dev, struct uio *uio, int flag);
175int scparam(struct tty *tp, struct termios *t);
176int scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p);
33
34/* vm things */
35#define ISMAPPED(pa, width) \
36 (((pa) <= (u_long)0x1000 - (width)) \
37 || ((pa) >= 0xa0000 && (pa) <= 0x100000 - (width)))
38#define pa_to_va(pa) (KERNBASE + (pa)) /* works if ISMAPPED(pa...) */
39
40/* printable chars */

--- 128 unchanged lines hidden (view full) ---

169int scprobe(struct isa_device *dev);
170int scattach(struct isa_device *dev);
171int scopen(dev_t dev, int flag, int mode, struct proc *p);
172int scclose(dev_t dev, int flag, int mode, struct proc *p);
173int scread(dev_t dev, struct uio *uio, int flag);
174int scwrite(dev_t dev, struct uio *uio, int flag);
175int scparam(struct tty *tp, struct termios *t);
176int scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p);
177void scxint(dev_t dev);
178void scstart(struct tty *tp);
179void scintr(int unit);
180int pcmmap(dev_t dev, int offset, int nprot);
181static void scinit(void);
182static u_int scgetc(int noblock);
183 struct tty *scdevtotty(dev_t dev);
184static scr_stat *get_scr_stat(dev_t dev);
177void scstart(struct tty *tp);
178void scintr(int unit);
179int pcmmap(dev_t dev, int offset, int nprot);
180static void scinit(void);
181static u_int scgetc(int noblock);
182 struct tty *scdevtotty(dev_t dev);
183static scr_stat *get_scr_stat(dev_t dev);
185static scr_stat *alloc_scp();
184static scr_stat *alloc_scp(void);
186static void init_scp(scr_stat *scp);
185static void init_scp(scr_stat *scp);
187static int get_scr_num();
188static void scrn_timer();
186static int get_scr_num(void);
187static void scrn_timer(void);
189static void clear_screen(scr_stat *scp);
190static int switch_scr(scr_stat *scp, u_int next_scr);
191static void exchange_scr(void);
192static inline void move_crsr(scr_stat *scp, int x, int y);
193static void scan_esc(scr_stat *scp, u_char c);
194static inline void draw_cursor(scr_stat *scp, int show);
195static void ansi_put(scr_stat *scp, u_char *buf, int len);
196static u_char *get_fstr(u_int c, u_int *len);
197static void update_leds(int which);
198static void history_to_screen(scr_stat *scp);
199static int history_up_line(scr_stat *scp);
200static int history_down_line(scr_stat *scp);
201static void kbd_wait(void);
202static void kbd_cmd(u_char command);
203static void set_mode(scr_stat *scp);
204 void set_border(int color);
205static void set_vgaregs(char *modetable);
188static void clear_screen(scr_stat *scp);
189static int switch_scr(scr_stat *scp, u_int next_scr);
190static void exchange_scr(void);
191static inline void move_crsr(scr_stat *scp, int x, int y);
192static void scan_esc(scr_stat *scp, u_char c);
193static inline void draw_cursor(scr_stat *scp, int show);
194static void ansi_put(scr_stat *scp, u_char *buf, int len);
195static u_char *get_fstr(u_int c, u_int *len);
196static void update_leds(int which);
197static void history_to_screen(scr_stat *scp);
198static int history_up_line(scr_stat *scp);
199static int history_down_line(scr_stat *scp);
200static void kbd_wait(void);
201static void kbd_cmd(u_char command);
202static void set_mode(scr_stat *scp);
203 void set_border(int color);
204static void set_vgaregs(char *modetable);
206static void set_font_mode();
207static void set_normal_mode();
205static void set_font_mode(void);
206static void set_normal_mode(void);
208static void copy_font(int operation, int font_type, char* font_image);
209static void set_destructive_cursor(scr_stat *scp, int force);
210static void draw_mouse_image(scr_stat *scp);
211static void save_palette(void);
212 void load_palette(void);
213static void do_bell(scr_stat *scp, int pitch, int duration);
214static void blink_screen(scr_stat *scp);
215
207static void copy_font(int operation, int font_type, char* font_image);
208static void set_destructive_cursor(scr_stat *scp, int force);
209static void draw_mouse_image(scr_stat *scp);
210static void save_palette(void);
211 void load_palette(void);
212static void do_bell(scr_stat *scp, int pitch, int duration);
213static void blink_screen(scr_stat *scp);
214
216#endif /* SYSCONS_H */
215#endif /* !_I386_ISA_SYSCONS_H_ */