Commit Graph

467 Commits

Author SHA1 Message Date
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
provos 0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
thorpej 6c88de3b53 Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej 274c086b22 Remove <sys/map.h> 2002-09-26 18:54:30 +00:00
thorpej 71404bb533 Don't include <sys/map.h>. 2002-09-25 22:21:01 +00:00
chs c081614ea2 it really helps to get the stub right before cutting + pasting it 27 times.
alas, I did not.  doh.
2002-09-22 07:53:39 +00:00
chs 55e1f79335 add pmap_remove_all() hook (empty on most platforms so far). 2002-09-22 07:17:08 +00:00
mycroft b1ce597546 Ignore bus exception errors here.
XXX I'm not sure exactly why this is necessary...
2002-09-21 19:49:47 +00:00
mycroft f822116056 FFS would help... 2002-09-21 16:51:54 +00:00
mycroft 48132121ca Fix the device name for ptc so ptys actually work again. 2002-09-21 16:38:50 +00:00
mycroft 80eaffef1b Force synchronous negotiation off even if the target initiates it, by setting
minsync to 0.  It may be possible to make this work, but I don't know how.
2002-09-21 16:18:30 +00:00
mycroft e4b5a96a09 Enable SCSI target devices, and explicitly disable wide negotiation for esp. 2002-09-21 16:17:46 +00:00
ragge b3abfee038 Do not include <sys/clist.h>, it's not used in NetBSD at all. 2002-09-19 10:37:59 +00:00
lukem 3ea2e21f82 enable USERCONF by default; it's small and extremely useful to have available. 2002-09-18 02:43:53 +00:00
mycroft 3294e33d95 Don't blindly receive all multicast packets just because we're on a turbo.
Pay lip service to making promiscuous mode work.
2002-09-11 13:15:58 +00:00
mycroft f13a876c12 Remove straggling NEXT_TURBO #ifdefs. 2002-09-11 07:17:33 +00:00
mycroft d6a62735b7 Attach nextdisplay on the mono turbo. 2002-09-11 07:06:16 +00:00
mycroft 8ac5416160 In en_put(), if we don't get a packet, just return 0. This is how we tell
the libsa code to retransmit.
2002-09-11 06:32:07 +00:00
mycroft d5e3432796 Don't know whether it works, but enable the '030 support for the Hell of it. 2002-09-11 04:17:01 +00:00
mycroft a0688f1086 Determine turbo-ness based on the ROM machine type here, too. 2002-09-11 02:17:14 +00:00
mycroft c618f2cc87 Comprehensive patches from Christian Limpach:
* Fix problems with the DMA and SCSI drivers.
* Make turbo machines sort of work.
Additional fixes from me:
* Determine if we're a turbo at boot time, by looking at the ROM machine type.
* Set the display size correctly (1120 pixels wide, but padded to 1152 only on
  non-turbo machines).
Caveats:
* SCSI doesn't work on the turbo (or at least it blows chunks with no devices
  attached).
* Media selection doesn't work on the turbo (the BMAP stuff doesn't exist on
  turbo machines).
* The boot block is prone to timing out.
2002-09-11 01:46:29 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
thorpej 139cdc3125 Make nbuf, nswbuf, and bufpages unsigned. Make all operations on these
variables unsigned, and update places where their values are printed.
2002-08-25 20:21:33 +00:00
briggs 0b956d0b8b Implement pmc(9) -- An interface to hardware performance monitoring
counters.  These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface.  Initially, the Intel XScale
counters are the only ones supported.
2002-08-07 05:14:47 +00:00
thorpej 3912e469dd Rename cdev_systrace_init() to cdev_clonemisc_init(), so it can
be properly used by any misc. cloning device.  While here, correct
a comment to indicate that "open" is the only entry point and that
everything else is handled with fileops.
2002-07-19 16:38:14 +00:00
scw bef00d4895 m68k syscall rototill:
- Switch all m68k-based ports over to __HAVE_SYSCALL_INTERN.
 - Add systrace glue.
 - Define struct mdproc in <m68k/proc.h> instead of <machine/proc.h>.
   (They were all defined exactly the same anyway, other than a couple
   of the MDP_* flags.)
2002-07-13 08:28:40 +00:00
mycroft ade1f1e303 Oops; add scsibus too. 2002-07-11 18:07:22 +00:00
mycroft 8c81ec0a3c Enable the SCSI driver. 2002-07-11 17:56:31 +00:00
christos f12f20db6c Apply patches from Christian Limpach:
- NeXT label reading support
    - SCSI dma fixes
    - media support for if_xe.c

Some of these need more cleanup, but at least make SCSI support usable on
the NeXT.
2002-07-11 16:03:09 +00:00
junyoung 3d826105dc alloc_attr -> allocattr
Approved by Matthias Drochner.
2002-07-04 14:37:10 +00:00
christos 3b50728cf4 MD systrace gluons. 2002-06-17 16:32:57 +00:00
lukem fde6ae6f04 Enable "pseudo-device clockctl" in all kernels, except
installation related kernels (INSTALL* and RAMDISK*).
This enables rc.conf(5) $ntpd_chroot to be used "out of the box"
2002-06-17 05:14:02 +00:00
deberg bb245959f9 bus_space_mmap(), same as atari port. untested, as it is unused. 2002-06-11 05:17:30 +00:00
thorpej d941ddfee0 Don't use -traditional-cpp if HAVE_GCC3. 2002-06-04 21:39:09 +00:00
drochner d2b9876081 move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
2002-06-02 14:44:35 +00:00
thorpej 6edcabc59d Fix a typo (#ifdef defined(...)) 2002-05-30 21:58:56 +00:00
drochner 60b6f587bc Subtract vm_map_min(kernel_map) from kernel virtual addresses to get offsets
into kernel_object where this was missing.
This is a no-op on ports where VM_MIN_KERNEL_ADDRESS==0, ie all but
cesfic.
Confirmed and corrected by Chuck Silvers.
2002-05-22 14:29:23 +00:00
jdolecek 9caf54f80a readdisklabel(): fabricate sane default disklabel in case there isn't
any on the disk
Implemented by Christian Limpach, sent in port-next68k/16929.
2002-05-20 20:49:16 +00:00
jdolecek 89924fe79b Fix race condition between the DMA handler (which gets called
on spldma), and rest of driver/network code (which runs on splnet) in way
if->if_snd queue is accessed. Solve by using intermediate queue.

Problem found, and fix provided by Christian Limpach in port-next68k/16798
2002-05-20 20:19:36 +00:00
jdolecek 56eb55e177 Adapt this to post thorpej-scsipi world.
Fix provided by Christian Limpach in port-next68k/16928.
2002-05-20 18:03:03 +00:00
jdolecek a36ba752c5 Check for zsc properly, and fix typo in #include.
Pointed out, and patch provided by Christian Limpach in private e-mail.
2002-05-20 17:55:46 +00:00
jdolecek e8895ed0a1 Various whitespace fixes, and turn 'No packet to start' message to DPRINTF().
Mostly inspired by Christian Limpach's patch in port-next68k/16978.
2002-05-18 14:33:35 +00:00
jdolecek 88203d9c69 whitespace & formatting fixes, from Christian Limpach in port-next68/16798 2002-05-18 14:09:44 +00:00
jdolecek 46a7bc7d62 Force absolute jumps where necessary, newer gas generates pc-relative
jumps, which we don't want here.
Reported, suggested fix, and testing by Christian Limpach in port-next68k/16793.
2002-05-17 18:03:50 +00:00
jdolecek 8d0d2a392c make kgdb buildable again, g/c next68k/stub.c
Changes by Christian Limpach in kern/16794, with some minor adjustment
by me.
2002-05-17 06:44:03 +00:00
jdolecek d50107af75 Comment out QUOTA as well. Suggested by Christian Limpach
in port-next68k/16792.
Applied even tho not strictly necessary, kernel nowadays actually
links with this option too.
2002-05-15 18:23:06 +00:00
matt 84eb329d14 Eliminate commons (including many used ones). Clean up variable references. 2002-05-14 02:03:00 +00:00
jdolecek 4d23ad14c5 don't strip the resulting bootprog on install; it's raw binary
XXX I hope this is correct way to do this
2002-05-12 15:18:27 +00:00
jdolecek 82b1bed645 protect opt_compat_svr4.h with 'if defined(_KERNEL_OPT)', so that
this is usable from e.g. LKM context
2002-05-11 09:34:00 +00:00
jdolecek 7ad1acf323 use ${.OBJDIR} rather than ${.CURDIR}/obj.${MACHINE} (eek)
g/c -I${.CURDIR} and -I${S}/lib/libkern from ${INCLUDES}
build libsa dev_net.c via .PATH and SRCS rather than special rules
2002-05-08 11:27:30 +00:00