summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Merge from NetBSD:joe2002-04-011-14/+38
| | | | | | | | revision 1.81 date: 2000/10/24 15:01:26; author: augustss; lines: +36 -10 Add a hack to try and figure out if the TI UTUSB41 hub is bus powered despite claiming to be self powered (it's important to know so that the power budget can be met).
* Add more ID's from the PRISM family. from wi.c 1.61 and wireg.h 1.26 byimp2002-04-012-0/+12
| | | | | | ichiro@netbsd.org Obtained from: NetBSD
* Merge from NetBSD: revision 1.72joe2002-04-011-7/+4
| | | | | | | | | Part of this got merged in a previous commit, but not all. revision 1.72 date: 2000/04/14 14:13:56; author: augustss; state: Exp; lines: +34 -27 Make attach of ugen work as it should so product&vendor locators can be used.
* Update $NetBSD$ idents to reflect reality.joe2002-04-013-3/+3
|
* Fix style bug in previous commit.jhb2002-04-011-1/+1
|
* Merge from NetBSD: Removed unnecessary variable declaration.joe2002-04-011-6/+1
|
* Synchronise with the NetBSD version of this header file for formatting.joe2002-04-011-84/+72
|
* Merge from NetBSD: usbdi.c rev 1.77, usbdi.h rev 1.44joe2002-04-012-3/+15
| | | | | date: 2000/09/23 21:02:04; author: augustss; Add a way to do control transfers on other pipes than the default pipe.
* Use ANSI prototypes and declarations.joe2002-04-011-155/+65
|
* Merge from NetBSD: Make it compile with USB_DEBUG.joe2002-04-011-9/+6
|
* Merge from NetBSD:joe2002-04-013-8/+12
| | | | | | usb.c rev 1.43, usb_port.h rev 1.26, usb_subr.c rev 1.71 Some OpenBSD portability fixes.
* Merge from NetBSD:joe2002-04-011-1/+4
| | | | | | | | | usb.c 1.40: revision 1.40 date: 2000/03/14 23:13:12; author: augustss; state: Exp; lines: +4 -1 Make sure the USB event thread discovers all devices first time it call usb_discover(). It should now be possible to have the root NFS mounted over a USB Ethernet Adapter.
* Make `route add -inet6 default ::1 -ifp gif0' work actually.ume2002-04-011-5/+1
| | | | | | The change between 1.13 and 1.14 is specific to AF_INET. MFC after: 1 week
* Merge from NetBSD:joe2002-04-013-15/+11
| | | | | | | | | usb_port.h (1.33), usbdi_util.c (1.32), usbdi_util.h (1.22): ---------------------------- date: 2000/06/01 14:37:51; author: augustss; Improve some portability items. ----------------------------
* Tidy up the formatting so that it's in the style of NetBSD's copy ofjoe2002-04-011-34/+26
| | | | this file.
* In nd6_lookup(), check if rt_llinfo is non-NULL to avoid returning anume2002-04-011-4/+9
| | | | | | | entry that has the LLINFO flag but is not a neighbor cache entry. Obtained from: KAME MFC after: 1 week
* Use ANSI prototypes and declarations.joe2002-04-011-98/+35
|
* Merge from NetBSD:joe2002-04-011-10/+12
| | | | | | | | ---------------------------- revision 1.26 date: 1999/11/28 22:49:53; author: augustss; state: Exp; lines: +12 -8 More USB_DEBUG and DIAGNOSTIC output. ----------------------------
* Merge from NetBSD:joe2002-04-011-6/+20
| | | | | | | | | ---------------------------- revision 1.73 date: 2000/05/31 16:14:42; author: augustss; state: Exp; lines: +19 -6 Be more careful when setting the alternate interface so we don't end up with nothing set at all if it fails. ----------------------------
* Merge from NetBSD:joe2002-04-011-1/+7
| | | | | | | | | ---------------------------- revision 1.117 date: 2000/05/30 09:26:06; author: augustss; lines: +7 -1 As a safety, check that the controller is not suspended when we get an interrupt. ----------------------------
* Add an entry for "PCCOM dual port RS232/422/485".jhay2002-04-011-0/+9
| | | | | Submitted by: Daniel O'Connor <doconnor@gsoft.com.au> MFC after: 1 week
* Merge from NetBSD:joe2002-04-011-3/+8
| | | | | | | | | ---------------------------- revision 1.90 date: 2000/05/08 18:28:46; author: thorpej; lines: +8 -3 Quiet some uninitialized variable warnings that do in fact look legitimate. ----------------------------
* Add a clarifying comment (from NetBSD).joe2002-04-011-1/+2
| | | | Update the $NetBSD$ ident to reflect reality.
* Merge from NetBSD:joe2002-04-012-3/+12
| | | | | | | | | | ohci.c (1.85), ohcireg.h (1.17): ---------------------------- date: 2000/04/01 09:27:35; author: augustss; Add a delay before reading the number of ports from the controller to avoid getting 0 from it. ----------------------------
* Merge from NetBSD:joe2002-04-013-100/+413
| | | | | | | | | ohci.c (1.83), ohcireg.h (1.16), ohcivar.h (1.21) =================================================================== date: 2000/03/29 01:46:26; author: augustss; A first stab at support for isochronous transfers. ===================================================================
* Fix some whitespace style bugs.mike2002-04-011-17/+17
|
* o Implement <sys/_types.h>, a new header for storing types that aremike2002-04-014-15/+163
| | | | | | | | | | | | | | | MI, not required to be a fixed size, and used in multiple headers. This will grow in time, as more things move here from <sys/types.h> and <machine/ansi.h>. o Add missing type definitions (uint16_t and uint32_t) to <arpa/inet.h> and <netinet/in.h>. o Reduce pollution in <sys/types.h> by using `#if _FOO_T_DECLARED' widgets to avoid including <sys/stdint.h>. o Add some missing type definitions to <unistd.h> and note the ones that still need to be added. o Make use of <sys/_types.h> primitives in <grp.h> and <sys/types.h>. Reviewed by: bde
* Implement a fine-grain control system which allows header developersmike2002-04-011-0/+90
| | | | | | | | to control the exposure of macros and prototypes depending upon the POSIX, X/Open, or ISO C version an application has requested. Submitted by: wollman Reviewed by: bde, imp
* Remove erronious destroy_dev. Not sure what the author's intent was herealfred2002-04-011-1/+0
| | | | | | but this makes the driver not panic my -current box. Approved by: scottl
* Fix 3 of the four problems with my last indentation fix. ("fixing" theken2002-04-011-4/+2
| | | | | | | | fourth would be a divergence from the prevailing style.) Thanks to bde for catching this. Pointed out by: bde
* ktr changes to improve performance and make writing a userland utility tojake2002-04-014-128/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | dump the trace buffer feasible. - Remove KTR_EXTEND. This changes the format of the trace entries when activated, making writing a userland tool which is not tied to a specific kernel configuration difficult. - Use get_cyclecount() for timestamps. nanotime() is much too heavy weight and requires recursion protection due to ktr traces occuring as a result of ktr traces. KTR_VERBOSE may still require recursion protection, which is now conditional on it. - Allow KTR_CPU to be overridden by MD code. This is so that it is possible to trace early in startup before pcpu and/or curthread are setup. - Add a version number for the ktr interface. A userland tool can check this to detect mismatches. - Use an array for the parameters to make decoding in userland easier. - Add file and line recording to the non-extended traces now that the extended version is no more. These changes will break gdb macros to decode the extended version of the trace buffer which are floating around. Users of these macros should either use the show ktr command in ddb, or use the userland utility which can be run on a core dump. Approved by: jhb Tested on: i386, sparc64
* Fix an indentation problem.ken2002-04-011-7/+7
|
* Here follows the new kernel dumping infrastructure.phk2002-03-3119-256/+502
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Caveats: The new savecore program is not complete in the sense that it emulates enough of the old savecores features to do the job, but implements none of the options yet. I would appreciate if a userland hacker could help me out getting savecore to do what we want it to do from a users point of view, compression, email-notification, space reservation etc etc. (send me email if you are interested). Currently, savecore will scan all devices marked as "swap" or "dump" in /etc/fstab _or_ any devices specified on the command-line. All architectures but i386 lack an implementation of dumpsys(), but looking at the i386 version it should be trivial for anybody familiar with the platform(s) to provide this function. Documentation is quite sparse at this time, more to come. Details: ATA and SCSI drivers should work as the dump formatting code has been removed. The IDA, TWE and AAC have not yet been converted. Dumpon now opens the device and uses ioctl(DIOCGKERNELDUMP) to set the device as dumpdev. To implement the "off" argument, /dev/null is used as the device. Savecore will fail if handed any options since they are not (yet) implemented. All devices marked "dump" or "swap" in /etc/fstab will be scanned and dumps found will be saved to diskfiles named from the MD5 hash of the header record. The header record is dumped in readable format in the .info file. The kernel is not saved. Only complete dumps will be saved. All maintainer rights for this code are disclaimed: feel free to improve and extend. Sponsored by: DARPA, NAI Labs
* The AAC, TWE and IDA diskdrivers cannot dump until I and msmithphk2002-03-311-1/+6
| | | | | | have ripped all the i386 specific formatting code from their dump routines. Due to the potential for trashing disks, I did not want to do this "blind".
* Add the i386dump.c dumpsys() source file.phk2002-03-311-0/+1
|
* DA (scsi) and AD (ata) diskdrivers:phk2002-03-311-48/+10
| | | | Make the dump routine do just writing of data.
* Add a new #include which describes the common header format for kerneldumps.phk2002-03-311-0/+72
| | | | | | | | | This design is my best effort and it is quite likely that people more used to kernel dumps may want to change this subsequently so two levels of version numbers are provided: one for the common header and one per architecture. Sponsored by: DARPA & NAI Labs.
* Regen.joe2002-03-312-11/+231
|
* Add more usb adapters, from NetBSD.joe2002-03-312-17/+82
|
* Implement the two "GEOM" ioctls DIOCGSECTORSIZE and DIOCGMEDIASIZE forphk2002-03-311-0/+13
| | | | | | | the non-GEOM code as well. This simplifies the the kernel-dumping and disk-management tools as less compatibility cruft will be needed. Sponsored by: DARPA and NAI Labs.
* Only install the help file if we can find it. Use ${BASE}.helpmarcel2002-03-312-8/+2
| | | | | in both the condition and for the install. We expect to find the help file in ${.OBJDIR}.
* Keep the reference to the file acquired in _aio_aqueue() until the operationalc2002-03-311-3/+7
| | | | | | completes. The reference is released in aio_free_entry(). Submitted by: tegge
* ATA100 is allowed on the HPT chips rev >= 3sos2002-03-311-1/+1
|
* Close some holes with p->p_args by NULL'ing out the p->p_args pointeralfred2002-03-312-4/+14
| | | | | | | while holding the proc lock, and by holding the pargs structure when accessing it from outside of the owner. Submitted by: Jonathan Mini <mini@haikugeek.com>
* Support more than 32 sio unit numbers. The maximum unit number is nowbde2002-03-311-8/+12
| | | | | | | | | | | (65536 * 32 - 1), but MAKEDEV only supports up to (32 * 32 -1). Device names use the unit number in base 32 for all "digits". This required fixing an old bug in MAKEDEV:ttyminor(). Its arg was the global $unit instead of $1. Reminded by: Valentin K. Ponomarenko <valka@krog.ukrtel.net> MFC-after: 1 week
* MFi386: revision 1.508.kato2002-03-312-16/+24
|
* A couple of bits survived Dans nukage of CV_DEBUG in favour of INVARIANTS,phk2002-03-313-3/+1
| | | | take them out with tacticals.
* Centralize the "bootdev" and "dumpdev" variables. They are still prettyphk2002-03-319-17/+3
| | | | | bogus all things considered, but at least now they don't camouflage as being MD variables.
* Hacks for measuring interrupt latency. Interrupt latency can bebde2002-03-311-2/+42
| | | | | | | | | | | | | | measured accurately for periodic interrupts provided the interrupts don't need to be serviced very quickly to keep their period almost constant. sio output interrupts have this property (interrupt service can be delayed for up to 1 character time without the period changing). This is non-optional and undocumented so that it can be added and removed easily. It has no significant effect unless it is enabled by hacking on a variable using a debugger. Hardclock and statclock interrupts would work even better for this, at least on i386's, provided their interrupt handlers are fast (as they are in -current but not in -stable or in my version of -current).
* Implement i386's (o)sigreturn() like the alpha's: Use copyin() to readalc2002-03-312-16/+24
| | | | | | | | the osigcontext or ucontext_t rather than useracc() followed by direct user- space memory accesses. This reduces (o)sigreturn()'s execution time by 5- 50%. Submitted by: bde
OpenPOWER on IntegriCloud