diff options
author | bde <bde@FreeBSD.org> | 1995-09-10 21:36:12 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-09-10 21:36:12 +0000 |
commit | fb586a0db46da48fae0e47a20c7e44deefc793ae (patch) | |
tree | 2f9ada73676382a8e521390759d93583dc776b5c /sys/isa/syscons.h | |
parent | ad7999f808fe524da6381b2558d0d99652a393d7 (diff) | |
download | FreeBSD-src-fb586a0db46da48fae0e47a20c7e44deefc793ae.zip FreeBSD-src-fb586a0db46da48fae0e47a20c7e44deefc793ae.tar.gz |
Make pcvt and syscons live in the same kernel. If both are enabled, then
the first one in the config has priority. They can be switched using
userconfig().
i386/i386/conf.c:
Initialize the shared syscons/pcvt cdevsw entry to `nx'.
Add cdevsw registration functions.
Use devsw functions of the correct type if they exist.
i386/i386/cons.c:
Add renamed syscons entry points to constab.
i386/i386/cons.h:
Declare the renamed syscons entry points.
i386/i386/machdep.c:
Repeat console initialization after userconfig() in case the current
console has become wrong. This depends on cn functions not wiring down
anything important.
sys/conf.h:
Declare new functions.
i386/isa/isa.[ch]:
Add a function to decide which display driver has priority. Should be
done better.
i386/isa/syscons.c:
Rename pccn* -> sccn*.
Initialize CRTC start address in case the previous driver has moved it.
i386/isa/syscons.c, i386/isa/pcvt/*
Initialize the bogusly shared variable Crtat dynamically in case the
stored value was changed by the previous driver.
Initialize cdevsw table from a template.
Don't grab the console if another display driver has priority.
i386/isa/syscons.h, i386/isa/pcvt/pcvt_hdr.h:
Don't externally declare now-static cdevsw functions.
i386/isa/pcvt/pcvt_hdr.h:
Set the sensitive hardware flag so that pcvt doesn't always have lower
priority than syscons. This also fixes the "stupid" detection of the
display after filling the display with text.
i386/isa/pcvt/pcvt_out.c:
Don't be confused the off-screen cursor offset 0xffff set by syscons.
kern/subr_xxx.c:
Add enough nxio/nodev/null devsw functions of the correct type for syscons
and pcvt.
Diffstat (limited to 'sys/isa/syscons.h')
-rw-r--r-- | sys/isa/syscons.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/isa/syscons.h b/sys/isa/syscons.h index b09c57e..e660ba7 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.9 1995/05/30 08:03:15 rgrimes Exp $ + * $Id: syscons.h,v 1.10 1995/07/11 18:34:30 bde Exp $ */ #ifndef _I386_ISA_SYSCONS_H_ @@ -168,18 +168,11 @@ typedef struct default_attr { /* function prototypes */ int scprobe(struct isa_device *dev); int scattach(struct isa_device *dev); -int scopen(dev_t dev, int flag, int mode, struct proc *p); -int scclose(dev_t dev, int flag, int mode, struct proc *p); -int scread(dev_t dev, struct uio *uio, int flag); -int scwrite(dev_t dev, struct uio *uio, int flag); int scparam(struct tty *tp, struct termios *t); -int scioctl(dev_t dev, int cmd, caddr_t data, int flag, struct proc *p); void scstart(struct tty *tp); void scintr(int unit); -int pcmmap(dev_t dev, int offset, int nprot); static void scinit(void); static u_int scgetc(int noblock); - struct tty *scdevtotty(dev_t dev); static scr_stat *get_scr_stat(dev_t dev); static scr_stat *alloc_scp(void); static void init_scp(scr_stat *scp); |