diff options
author | Warner Losh <imp@FreeBSD.org> | 2005-04-03 23:27:11 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2005-04-03 23:27:11 +0000 |
commit | b756200647e76f756a911a917e896b68b3af0a4c (patch) | |
tree | d52fa09dbeddc249098118f61fb2c6b3fb5a39c3 /sys/pc98/include | |
parent | 6e4b282039e6f0ac815e17ca13f76cd2688d126f (diff) | |
download | src-b756200647e76f756a911a917e896b68b3af0a4c.tar.gz src-b756200647e76f756a911a917e896b68b3af0a4c.zip |
Move pc98 specific parts to the pc98 specific file.
Notes
Notes:
svn path=/head/; revision=144611
Diffstat (limited to 'sys/pc98/include')
-rw-r--r-- | sys/pc98/include/apm_bios.h | 53 | ||||
-rw-r--r-- | sys/pc98/include/md_var.h | 39 | ||||
-rw-r--r-- | sys/pc98/include/pci_cfgreg.h | 37 |
3 files changed, 123 insertions, 6 deletions
diff --git a/sys/pc98/include/apm_bios.h b/sys/pc98/include/apm_bios.h index 742631e5d984..261ae3726d91 100644 --- a/sys/pc98/include/apm_bios.h +++ b/sys/pc98/include/apm_bios.h @@ -1,6 +1,55 @@ /*- - * This file is in the public domain. + * Copyright (C) 2005 M. Warner Losh. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ */ -/* $FreeBSD$ */ +#ifndef _PC98_INCLUDE_APM_BIOS_H_ +#define _PC98_INCLUDE_APM_BIOS_H_ + +/* + * PC98 machines implement APM bios in nearly the same was as i386 machines, + * so include the i386 version and note the changes here. + */ #include <i386/apm_bios.h> + +/* + * APM BIOS and interrupt are different on pc98 + */ +#undef APM_BIOS +#undef APM_INT +#define APM_BIOS 0x9a +#define APM_INT 0x1f + + +/* + * PC98 also has different GETPWSTATUS and DRVVERSION calls. I believe that + * these only work on newer APM BIOSes, but haven't confirmed that recently + */ +#undef APM_GETPWSTATUS +#undef APM_DRVVERSION +#define APM_GETPWSTATUS 0x3a +#define APM_DRVVERSION 0x3e + +#endif /* ! _PC98_INCLUDE_APM_BIOS_H_ */ diff --git a/sys/pc98/include/md_var.h b/sys/pc98/include/md_var.h index 1f674fe3614e..7d0fb7262651 100644 --- a/sys/pc98/include/md_var.h +++ b/sys/pc98/include/md_var.h @@ -1,6 +1,41 @@ /*- - * This file is in the public domain. + * Copyright (C) 2005 M. Warner Losh. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ */ -/* $FreeBSD$ */ + +#ifndef _PC98_INCLUDE_MD_VAR_H_ +#define _PC98_INCLUDE_MD_VAR_H_ #include <i386/md_var.h> + +/* + * PC98 machines are based on Intel CPUs. Some add-in boards offer + * different CPUs than came with the processor. These CPUs sometimes + * require additional flushing before and/or after DMAs. + */ +extern int need_pre_dma_flush; +extern int need_post_dma_flush; + +#endif /* !_PC98_INCLUDE_MD_VAR_H_ */ diff --git a/sys/pc98/include/pci_cfgreg.h b/sys/pc98/include/pci_cfgreg.h index 9a54be3ba862..dc9207deb23a 100644 --- a/sys/pc98/include/pci_cfgreg.h +++ b/sys/pc98/include/pci_cfgreg.h @@ -1,6 +1,39 @@ /*- - * This file is in the public domain. + * Copyright (C) 2005 M. Warner Losh. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ */ -/* $FreeBSD$ */ + +#ifndef _PC98_INCLUDE_PCI_CFGREG_H_ +#define _PC98_INCLUDE_PCI_CFGREG_H_ #include <i386/pci_cfgreg.h> + +/* + * PC98 uses a non-standard CONF2_FORWARD port, so redefine it here. + */ +#undef CONF2_FORWARD_PORT +#define CONF2_FORWARD_PORT 0x0cf9 + +#endif /* !_PC98_INCLUDE_PCI_CFGREG_H_ */ |