Commit Graph

299 Commits

Author SHA1 Message Date
thorpej 2e33e4c2fa First-cut support for ISA PnP for NetBSD/bebox. 1998-07-31 04:54:38 +00:00
perry c4fae2a286 NORVEGIAN -> NORWEGIAN 1998-07-27 23:52:49 +00:00
is 6054d626f9 Switching dev/ic/lpt.c to use spllpt() instead of spltty(). It doesn't use
tty structures, and on some machines (namely the DraCo internal lpt, and some
multi-i/o boards for Amigas and DraCos), tying spltty to the pretty high printer
interupt level would hurt serial performance.

On all affected ports but Amiga, spllpt() has been defined in machine/intr.h
to be spltty(), thus preserving old behaviour. Portmasters are encouraged to
change is, if they feel something else is better (e.g., one of its own were
possible).
1998-07-18 21:27:25 +00:00
thorpej 2fc1260cc0 Implement bus_dmamap_load_uio(). 1998-07-17 21:09:59 +00:00
thorpej 8f2575ec87 Use fixed-size types. 1998-07-07 04:29:42 +00:00
jonathan d275e56dee * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
jonathan 011f2bda08 defopt NS, NSIP. 1998-07-05 06:49:00 +00:00
jonathan 5c0c5dd0b4 defopt ISO TPIP. 1998-07-05 04:37:35 +00:00
jonathan 8db0fcdbf7 defopt CCITT. 1998-07-05 02:12:22 +00:00
jonathan 3751946b97 defopt INET, NETATALK. 1998-07-05 00:51:04 +00:00
jonathan 466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
lukem bd8d501f7e remove options FIFO; it's now the default 1998-06-26 01:53:43 +00:00
thorpej 816e12eac2 defopt COMPAT_SVR4 1998-06-26 00:07:06 +00:00
sommerfe 446beb9dc4 defopt COMPAT_386BSD_MBRPART into opt_mbr.h 1998-06-22 21:12:51 +00:00
cgd 651b44e211 Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install.  (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.)  The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change.  Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
thorpej 02182100df Use config_defer(). 1998-06-09 18:49:33 +00:00
sakamoto 949c52c154 add address conversion macro for MPC105 and some fix. 1998-06-09 05:53:30 +00:00
sakamoto 040581ceed Add UVM support. 1998-06-09 05:41:19 +00:00
thorpej 680a3d77f4 Add isa_dma{freeze,thaw}(), used to temporarily stop and then restart
all ISA DMA.  Needed by e.g. the SmartCard reader for Sharks.
1998-06-09 01:04:17 +00:00
thorpej f194cb8705 Provide an isa_chipset_tag_t to children. 1998-06-09 00:10:27 +00:00
thorpej 0b76aff07b Change the ISA DMA API to take an isa_chipset_tag_t rather than
a struct device * corresponding to the ISA bus device.  The ISA DMA
controller driver functions have been renamed and now take a struct
isa_dma_state *, and are called indirectly by machine-dependent code
which provides the DMA state.

These changes allow e.g. `ofisa' (the OpenFirmware configuration
mechanism for the ISA bus, used by e.g. Sharks) to use the MI ISA
DMA controller code.
1998-06-09 00:10:02 +00:00
thorpej eddb2f4269 Adjust for change to the ISA DMA API. 1998-06-09 00:09:43 +00:00
lukem 8fb1228bc8 everything has bugs; either document them or don't bother with a BUGS section 1998-06-08 13:02:19 +00:00
lukem ed25dc5c57 if there's no known bugs, don't have a BUGS section 1998-06-08 11:35:10 +00:00
lukem cd2f6e9504 remove unnecessary paragraph separator 1998-06-08 11:34:41 +00:00
lukem d719a4221f if there's no known bugs, don't have a BUGS section 1998-06-08 11:34:04 +00:00
thorpej f8acb6d6fa Sync w/ i386 port:
Eliminate some needless indirection through ISA DMA front-end functions.
1998-06-03 21:55:26 +00:00
thorpej 52450409d6 Sync w/ i386 port:
Implement bounce buffers for mbufs.

Also, correct copyright snafus, and a forgot-o left over from a commit
I made yesterday.
1998-06-03 21:52:36 +00:00
thorpej 28486ff301 Remove the _cookie member of the DMA tag; it's not used by anything. (This
was already done to the i386 port.)
1998-06-03 06:47:41 +00:00
thorpej 7b37a276e2 Sync w/ i386 port:
Optimize the ISA DMA map load somewhat; don't traverse the buffer twice.
Instead, just attempt to do a normal load first.  If we exceed the bounce
threshold or the number of segments, then we bounce the transfer.
1998-06-03 06:43:04 +00:00
thorpej 6ffa35b390 Sync w/ i386 port:
When loading a DMA map, if the page's physical address exceeds the bounce
threshold, return an error to the caller (the caller will attempt to
bounce the transfer).
1998-06-03 06:41:51 +00:00
thorpej b5c2ecc231 Sync w/ i386 port:
Add a `bounce threshold' to the i386 DMA tag.
1998-06-03 06:40:45 +00:00
thorpej 2e846b8c1e Sync w/ i386 port. 1998-06-03 04:20:22 +00:00
thorpej a7f360c6c9 Specify a non-profiling C rule. 1998-05-31 23:25:41 +00:00
drochner 0c05b92da1 pull in new PC display headers 1998-05-28 16:59:31 +00:00
sakamoto 45439ad32b Use new PowerPC-generic stuff(sys/arch/powerpc). 1998-05-28 08:44:56 +00:00
kleink a97fc2f180 If any of _ANSI_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE are defined, don't
provide any identifiers other than sig_atomic_t.
1998-05-25 20:59:01 +00:00
thorpej 6626878e7b It is no longer necessary for pmap_pinit() and pmap_release() to be
pmap interface functions, as NetBSD no longer uses statically allocated
pmaps (except for the kernel pmap, which is special-cased anyhow).
1998-05-19 19:00:11 +00:00
kleink 687ea7404c Fix some arithmetics lossage on typeless pointers. 1998-05-08 16:55:15 +00:00
kleink aa36ad1f55 Fix some arithmetics lossage on typeless pointers. 1998-05-07 21:01:41 +00:00
thorpej 1686aca01d Pull in opt_gateway.h as appropriate. 1998-04-29 23:11:00 +00:00
kleink a53c1863fe Provide definitions for intptr_t and uintptr_t, signed resp. unsigned integral
types large enough to hold any pointer.
1998-04-27 17:39:10 +00:00
sakamoto 9880e1560f Back out the changes about NVGA. It's not necessary. 1998-04-20 12:24:03 +00:00
sakamoto 90bb94019a Use NVGA_ISA and NVGA_PCI instead of NVGA
for ISA/PCI frontend of vga.c.
1998-04-20 05:27:41 +00:00
drochner f44d3a08e5 "spkr" is now MI. Keep this file for compatibility. 1998-04-15 21:53:47 +00:00
drochner ebefb51112 cdev_{wsdisplay,spkr}_init() are now in sys/conf.h 1998-04-15 21:52:14 +00:00
drochner abce54eaa2 spkr stuff is now in sys/conf.h 1998-04-15 21:48:51 +00:00
drochner 70702ea730 "spkr" attaches to "pcppi" now. 1998-04-15 21:46:23 +00:00
drochner 37db4134a0 VGA and spkr are now MI. 1998-04-15 21:44:39 +00:00
tv b21bfbde11 Add -Wno-main conditional on compiler being gcc 2.8 or egcs. (This adds
a HAVE_GCC28 check-variable that can now be used to add other gcc-2.8
flags in cases where they may be useful, or to remove gcc 2.7.2 "bug
workaround" flags.)
1998-04-12 23:47:41 +00:00
tv 482063559a .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
sakamoto 2467110095 Change commented out default baudrate(38400 to 9600) of serial console. 1998-03-27 00:11:07 +00:00
sakamoto 94a783a350 allow use of new wscons code. 1998-03-27 00:07:53 +00:00
sakamoto f9133e686e Change default console. pc -> wscons 1998-03-26 23:51:08 +00:00
sakamoto 6143f6a20e Allow to use the new VGA and keyboard controller drivers as console 1998-03-26 23:45:59 +00:00
sakamoto a46fb646ee add entries for the new wscons stuff 1998-03-26 23:43:43 +00:00
sakamoto a81efa33bc tell drivers that this port knows about the new wscons code
(and generates the NWSCONS etc include files)
1998-03-26 23:42:53 +00:00
sakamoto 3334a0d040 Add bus_space_copy_region_N(). 1998-03-26 23:41:51 +00:00
mycroft 0dae91d9af Eliminate uses of TS_WOPEN in hard-wired devices. 1998-03-21 22:52:59 +00:00
bouyer 9f50fca1fd Add commented out "options FFS_EI" 1998-03-18 16:34:41 +00:00
mikel 415c4a15df duplicate i386 fixes (q.v.) 1998-03-04 07:20:13 +00:00
perry 1ed8ea9966 note second parm of sysarch() is now void *, + trivial KNF, etc. 1998-02-25 21:41:55 +00:00
thorpej 8a5a1155cf Include KERNFS option header. 1998-02-19 00:30:38 +00:00
mycroft 2e55db84dd Sync with powerpc/include/vmparam.h; removes some things which are not used. 1998-02-18 11:11:24 +00:00
mycroft 3b9429b248 Minor changes to make all the float.h files match. 1998-02-18 11:01:27 +00:00
thorpej 8354e68508 Remove "class" declarations, and add "devclass" declarations where
appropriate.  Fix several inconsistencies between device class and
attributes.  Mostly from Chris Demetriou.
1998-02-16 22:12:45 +00:00
sakamoto d053bf6ffe Eliminate unnecessary code.
The bebox has only one PCI-ISA bridge(82378ZB).
1998-02-12 05:19:04 +00:00
sakamoto e6ebe3f36f Add avail_end for DMA (temporary). 1998-02-12 05:16:06 +00:00
sakamoto eef219fd43 Sync with powerpc/include/endian.h 1998-02-12 01:28:48 +00:00
sakamoto 4a3839dbdd Sync with powerpc/include/ansi.h 1998-02-12 01:21:10 +00:00
sakamoto fcfdcaa513 Sync with port-i386. 1998-02-12 01:19:04 +00:00
sakamoto 4429e5c5fe Import memory disk filesystem hook from port-i386. 1998-02-12 01:03:58 +00:00
thorpej c26f962957 Use kernel_map in bus_dmamem_{map,free}(). 1998-02-11 03:08:31 +00:00
thorpej 30aa56fc66 Use M_DMAMAP where appropriate. 1998-02-11 01:37:51 +00:00
sakamoto 9a3f7a093f Use dev/isa/isadma.c. 1998-02-05 03:06:28 +00:00
sakamoto a2b24d5571 Change "__BUS_SPACE_NEED_STREAM_METHODS" to "__BUS_SPACE_HAS_STREAM_METHODS". 1998-02-04 14:13:40 +00:00
thorpej 8abe76d2f0 Add offset and length parameters to bus_dmamap_sync(), used for specifiying
partial syncs of a DMA mapping.
1998-02-04 05:12:46 +00:00
thorpej 99cc8482d1 Change the last argument of bus_dmamap_sync() from bus_dmasync_op_t to int,
and allow more than one synchronization operation to be specified in
a single call.  Dissallow mixing of PRE and POST operations.
1998-02-04 01:57:27 +00:00
thorpej a7c5c1ef3c Add dm_mapsize to bus_dmamap_t and rename BUS_DMAMEM_NOSYNC to
BUS_DMA_COHERENT.
1998-02-04 00:32:55 +00:00
thorpej f35992633d - Implement bus_dmamap_load_mbuf() (copied from i386 port).
- Add dm_mapsize to bus_dmamap_t and rename BUS_DMAMEM_NOSYNC to
  BUS_DMA_COHERENT.
1998-02-04 00:32:22 +00:00
sakamoto 484f3e93b1 Correct copyright notice. 1998-02-03 07:00:34 +00:00
sakamoto 4cec855834 Change bebox_bus_{io,mem} to BEBOX_BUS_SPACE_{IO,MEM} 1998-02-03 04:38:53 +00:00
sakamoto e65fe12381 Remove MD ed,wdc drivers. 1998-02-03 04:34:49 +00:00
sakamoto e3fee92b6e Change bebox_bus_{io,mem}.bus_base to BEBOX_BUS_SPACE_{IO,MEM}. 1998-02-03 04:32:17 +00:00
sakamoto 821174f3ba Remove MD ed,wdc drivers and Support MI ne,wdc drivers.
Change assembler source suffix.
1998-02-03 03:59:53 +00:00
sakamoto 1f9630f4a8 rename {locore,setjmp}.S to {locore,setjmp}.s 1998-02-03 03:53:23 +00:00
sakamoto cf5d09dc82 Add bus_space_{read,write,set}_{,multi,region}_stream_{2,4,8}().
These methods would be used where "raw" data needs to
{read,write,set} unchanged.
Add define __BUS_SPACE_NEED_STREAM_METHODS.
1998-02-03 03:11:15 +00:00
sakamoto 7026df0613 remove unnecessary cast. 1998-02-03 03:10:24 +00:00
mycroft b5c132e4d2 Prototype __flt_rounds() consistently. 1998-02-03 01:26:20 +00:00
sakamoto d5e690b8b7 Eliminate __BROKEN_INDIRECT_CONFIG 1998-02-02 05:54:20 +00:00
sakamoto f94197be4a Eliminate unnecessary define. 1998-02-02 05:17:40 +00:00
sakamoto 56620b3054 Move "read clock information from bootinfo" to initppc() from cpu_initclocks()
for delay() before cpu_initclocks().
Sync with powerpc/powerpc/machdep.c.
1998-02-02 04:59:19 +00:00
drochner 6e2af98681 adapt to changed <dev/ic/i8253reg.h> 1998-01-19 11:39:57 +00:00
sakamoto 39d4125cc3 add com0,com1,com2,com3
comment out wdc0, wd*(temporary)
1998-01-19 03:58:35 +00:00
sakamoto 9c3c5ad478 Support bootinfo like i386-port.
-define a buffer for information passed by the bootloader
-add a function ("lookup_bootinfo") to extract data
-use passed console information, for console attachment (VGA or SERIAL)
-use passed clock information, for timebase, decremente register
1998-01-19 03:47:41 +00:00
sakamoto 5f78a36791 Add findcpuspeed for delay() and to pass to the kernel(BUS FREQ information).
some bug fix.
1998-01-19 03:00:55 +00:00
sakamoto 7bffb69b4c Add btinfo_clock for BUS FREQ information.
some fix.
1998-01-19 02:52:02 +00:00
sakamoto 9b5302f3da eliminate unnecessary declaration. 1998-01-19 02:47:33 +00:00
sakamoto 5a1a1979bb eliminate unnecessary code.
include dev/ic/i8253reg.h instead of timerreg.h
1998-01-19 02:20:55 +00:00
sakamoto 0075503ee7 Sync with arch/i386/isa/pccons.c 1998-01-19 01:49:43 +00:00
drochner 32d94859ea adapt to changed <dev/ic/i8042reg.h> 1998-01-18 14:45:10 +00:00
sakamoto b1bde3fc9e initial import of bebox kernel loader. 1998-01-16 04:17:36 +00:00
sakamoto 538f1fec20 initial import of bebox kernel loader. 1998-01-16 04:07:35 +00:00
sakamoto ea7c4f2cab Data structures passed from the boot loader to the kernel 1998-01-16 04:04:14 +00:00
cgd 4fdd07b4c5 remove 'ata' interface attribute. it now is define in the MI conf/files. 1998-01-14 23:56:23 +00:00
sakamoto 7b093957d3 interrupt name change "softtty" -> "softserial" 1998-01-13 03:52:49 +00:00
thorpej cfdba7eac6 Update for changes to config. 1998-01-12 18:18:01 +00:00
sakamoto 1f703bce45 Sync w/ dev/isa/wdc.c 1998-01-12 06:08:41 +00:00
sakamoto 38efb3ac5f add The Be interrupt controller setmask function(bebox_intr_mask).
change SINT_TTY to SINT_SERIAL
       splsofttty to splsoftserial, and so on.
1998-01-12 04:57:10 +00:00
perry 6f57e5c573 multiple include protect machine/limits.h, fixes pr 4473 (from Mika Nystrom) 1998-01-09 22:23:44 +00:00
perry b46484bb8a RCSID Police. 1998-01-05 20:51:25 +00:00
perry 015e898c02 RCSID Police. 1998-01-05 07:02:46 +00:00
perry e13ab577cd RCSID Police. 1998-01-05 05:05:49 +00:00
thorpej b9f1b716f3 Now that all ports have pmap_activate(), and it has an identical interface,
prototype it in <vm/pmap.h>
1998-01-03 01:12:59 +00:00
thorpej c162e92a71 Implement pmap_activate(). 1998-01-02 22:17:18 +00:00
sakamoto 73a2fb9659 support simple stack trace. 1997-12-18 09:09:01 +00:00
sakamoto e2f98dba9e remove avail_end temporarily for compile. 1997-12-18 09:08:35 +00:00
sakamoto 15dd19ea29 use pmap.c of port-powerpc.
mem_regions support.
1997-12-18 09:07:58 +00:00
sakamoto c594d764bc support IDE hard disk controllers (wdc) and drives (wd)
put wdc.c into bebox/isa directory temporarily
1997-12-15 08:00:22 +00:00
sakamoto caa702438d add bus_space_{read,write}_multi_N macros
some fix.
1997-12-12 03:08:28 +00:00
sakamoto 4a0b2d1b52 fix wrong variable declaration 1997-12-11 09:31:00 +00:00
sakamoto cddd6a97bc add ins/outs macros 1997-12-11 09:23:54 +00:00
sakamoto 8bdb67652b change order of interrupt description bit 1997-12-11 09:04:23 +00:00
sakamoto b60acd2843 fix to get the right irq 1997-12-09 23:33:17 +00:00
sakamoto 52596506c7 Add NetBSD RCS Ids. Remove #if 0-#endif. 1997-12-02 01:20:30 +00:00
kleink c87631771e Add COMPAT_13. 1997-12-01 14:52:51 +00:00
sakamoto e9be44bb8d add bus_space_subregion macro. 1997-12-01 07:11:34 +00:00
sakamoto 80f65cc8ed use dev/isa/isa.c instead of bebox/isa/isa.c 1997-12-01 07:10:14 +00:00
sakamoto 38d8db93cf cleanup disused extern declaration. 1997-12-01 07:01:52 +00:00
sakamoto 972dc0b4d6 remove/import software interrupt model and external interrupt handler
from OpenBSD/powerpc.
move bus_space_* from bus_machdep.c to bus.h.
1997-11-27 10:17:45 +00:00
sakamoto 771073b8ce keep compile dir. 1997-11-27 09:48:18 +00:00
kleink 66c2794142 Add _BSD_SUSECONDS_T_ and _BSD_USECONDS_T_; do some space vs. tab formatting
cleanup
1997-11-23 20:20:53 +00:00
sakamoto 760b87dd7c Debugger() is called outside #ifdef DDB - fix.
remove simple monitor.
1997-11-18 03:09:09 +00:00
lukem 6c986561ee * add commented out DDB_HISTORY_SIZE=100 if DDB exists in config file
* fix up use of 'options<SPACE><TAB>'
1997-11-17 01:57:23 +00:00
veego df6d37534b s/NETHER/NARP/ and s/ether.h/arp.h/ for the 'new' arp system. 1997-11-13 10:37:40 +00:00
thorpej ce4c770f88 Make sure CPP, AR, AS, and RANLIB are defined. 1997-11-12 23:11:50 +00:00
thorpej a421995756 Define LORDER, NM, and TSORT here, like we do the rest of the tools. 1997-11-12 22:25:31 +00:00
thorpej 0b04d28454 Mark uses of long long with /* LONGLONG */ for lint. From
Chris Demetriou <cgd@pa.dec.com>.
1997-11-05 04:36:08 +00:00
thorpej ffa392cb7e asm volatile -> __asm__ __volatile 1997-11-05 00:38:37 +00:00
thorpej 4730a8cbec Bug fixes and cleanup from Chris Demetriou <cgd@pa.dec.com>:
- fix _C_LABEL so that it actually works.
- make __RENAME use _C_LABEL.
- fix __RENAME so that it expects an unquoted argument.
- fix __indr_reference and __warn_references so that they
  supply their own final semicolon.
- define __warn_references to nothing if not GNU C (required
  by the way it's used).

The __warn_references semicolon change has to be made
so that __warn_references can be defined into nothing.
(A ; all by itself isn't a great idea.)  The __indr_reference
change was made for consistency.
1997-11-04 23:09:23 +00:00
lukem 3e8e744696 getopt returns -1 not EOF 1997-11-01 06:49:14 +00:00
sommerfe 73e508c64a Fix pr4316: doesn't build on 1.3.. 1997-10-22 19:11:45 +00:00
thorpej 665f7d1a6e Implement __RENAME() in <machine/cdefs.h> 1997-10-22 05:20:32 +00:00
ws 8e311daf58 Fix spelling of my name 1997-10-20 10:07:56 +00:00
sakamoto cd83f6a454 sys/sysctl.h depend on vm/vm.h 1997-10-20 02:46:20 +00:00
thorpej 320cf86339 Garbage-collect definition of "com" driver. 1997-10-16 02:22:37 +00:00
sakamoto 8d05d254cd __VM_PMAP_HACK delete.
if_ed and lpt temporary support.
1997-10-16 01:55:21 +00:00
sakamoto 4c58649721 License indication changed. 1997-10-15 05:09:33 +00:00
sakamoto fe3d055d41 Initial commit of NetBSD/bebox port. 1997-10-14 06:47:17 +00:00