summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2003-02-17Add support for the Sun Enterprise 450Henric Jungheim
Reduce the size of a GENERIC kernel by ~190k Remove the nasty pointer/bus_space_handle_t casts Adds debug bus_space code including the ability to trace bus operations (it actually works now). The following rules are now followed (and verfified by the debug code): 1. A "bus_space_handle_t" may only be used with the "bus_space_tag_t" that created it. 2. Only "bus_space_map()" may create "bus_space_handle_t"s. 3. A "bus_space_handle_t" may not be modified after it has been created (other than being destroyed by "bus_space_unmap()"). Thanks to help from mcbride, marc, jason, drahn, to anyone that might have slipped my mind at the moment. ok jason@, deraadt@
2003-02-16KNFTheo de Raadt
2003-02-16KNFJason Wright
2003-02-16Provide a wskbd type for gsc keyboards, make gsckbd use it, and take advantageMiod Vallat
of it in kbd(8) to work correctly with such a keyboard. Reminded by maja some time ago.
2003-02-16RegenMiod Vallat
2003-02-16Although some hppa models, such as the 715, will require specific keyboards,Miod Vallat
some others, like the 712, will run with a regular ps/2 keyboard from your average computer shop, and the hardware will convert the scancodes so that they match the braindead gsc usage. Thus, it makes no point carrying a specific set of keyboard layouts for gsckbd, when in fact it's (almost) the same as for pckbd, with scancodes shuffled. So, add a simple scheme to build gsckbd tables from the pckbd tables. This brings all the international layouts from pckbd, but jp and br have extra keys for which I don't know the scancodes, so the generated gsckbd layouts are incomplete.
2003-02-15A simple and crude driver to play with the hil so-called ``ID module''Miod Vallat
devices. The ID module only purpose is to provide a small, unique, bitstring, which was used for some copy-protection or licensing scheme under HP-UX. Right now this driver is useless, as it provides no way to communicate this information to userland, and only displays it while attaching, as such: hilid0 at hil0 code 2: ID module hilid0: security code 10 04 b4 41 ac 77 14 0f 41 00 00 00 00 00 00 00 hilid1 at hil0 code 3: ID module hilid1: security code 10 04 b4 41 e3 b8 13 0f 41 00 00 00 00 00 00 00 Too bad it's not even good enough to feed the kernel random generator...
2003-02-15Provide a "code" locator for hil devices. This will let people ask theirMiod Vallat
kernels to attach hilkbd0 (console keyboard) or hilms0 (main mouse) to a specific device in the loop, by using UKC or compiling a new kernel. Using this and the previous console changes, it is now possible on a loop with multiple keyboards, to choose which keyboard will be the console keyboard.
2003-02-15Rework the console management on hppa:Miod Vallat
- only attach a keyboard as a console if it matches the PDC keyboard path - on hil, as there can be multiple keyboards on the loop, attach only the first hilkbd device configured as console keyboard. Right now this means the one with the lowest hil code, which was the existing behaviour so far. - do not try to switch to the wscons consdev structure early at all in wscons_machdep, but rather wait for the console to be completely configured (i.e. both wskbd and wsdisplay are attached) to switch. With feedback and help from mickey@
2003-02-15kill the remaining typedefs (These are about the last trace of InvertexJason Wright
save for the copyright message).
2003-02-15- Better type usage in the various hil code: prefer u_int8_t to u_char, butMiod Vallat
do not stick to u_int8_t when native word size can do the job better. - Allow send_hildev_cmd() to return the command response buffer to its caller, rather than forcing it to look at the guts of its parent device softc... this will be needed shortly.
2003-02-15skeleton support for LZS compressionJason Wright
2003-02-15Disable sti1, yes, but correctly...Miod Vallat
2003-02-15s/LSZ/LZS (consistent with linux and isakmpd *.cst)Jason Wright
2003-02-15CRD_F_COMP isn't so special that it needs 4 bits for a binary flagJason Wright
2003-02-15Increase xfer rates buffer from 8 to 12 bytes. This allows 802.11gTodd C. Miller
stations such as the airport extreme to associate. Tested by Ben Lovett.
2003-02-15rip_output: make sure a full ip header is passed for INP_HDRINCL; ok deraadt@Markus Friedl
2003-02-15Remove misleading (and incorrect) HIL_STATMASK definition.Miod Vallat
2003-02-15gsckbc is more sensitive than pckbc; always allow the enable() accessopMiod Vallat
to proceed on the console keyboard, or it would not be in a good state to handle boot -s prompt. Found the hard way by mickey@
2003-02-15The current hppa code would always ask for the root device, when runningMiod Vallat
a kernel configured with "swap generic". This feature was relied upon by Theo de Raadt, so that he would have to go downstairs to type "sd0a\n\n" every time he would want to try a new kernel, effectively forcing his body to take exercise trim the fat. No more! This commit adds code to correctly detect the root device, currently either a network interface or an scsi block device. This is slightly tricky, as all the information the PDC gives up is the controller device and its numeric subpath, and we need to match the real device from that... Tested and found to be working on ie and sd only so far. This commit is brought to you by the so-called friends of Theo de Raadt.
2003-02-14Do not allow sti1 to attach at the moment, as it will not work correctly;Miod Vallat
a fix is in the works.
2003-02-14always need softintr after rxexception (avoids uninitialized variable); ↵Jason Wright
pointed out by henric
2003-02-14this is a bsd materialMichael Shalayeff
2003-02-14put a copyrightMichael Shalayeff
2003-02-14Do not do arithmetic on bus_space_handle_t.Henric Jungheim
ok jason@
2003-02-14Pad boot out to 512 byte boundary... some old prom's don't like binariesJason Wright
which end on "odd" boundaries.
2003-02-14Fix an mbuf leak, where each incoming IPv6 TCP connection (to a listeningDaniel Hartmeier
socket) would leak one MT_SONAME mbuf. ok deraadt@, henning@
2003-02-14Let UBSEC_DEBUG compile; based on diff from sam at errno dot comJason Wright
(also nuke the last vtophys so it'll even work on sparc64)
2003-02-13Don't force all ATAPI devices to PIO mode 3, there areAlexander Yurchenko
devices which only support PIO mode 2 or less. Use atap_oldpiotiming to obtain supported mode for such devices. Also use SET FEATURES only for PIO mode > 2. Work by Alec Skelly <alec@dtkco.com> with my little help. ok costa@
2003-02-13Plug mbuf leak when there is an IV mismatch during software decrypt.Todd C. Miller
Found by dhartmei@; I thought he committed the fix but appearently not. Also make the debugging printf for IV mismatch more useful.
2003-02-13proper free order; from sturm@Michael Shalayeff
2003-02-13oops; spotted by drahnTheo de Raadt
2003-02-13Final part of NVIDIA nForce/nForce2 IDE support:Alexander Yurchenko
- registers definitions - timing values setup - cable detection Partially from Linux, FreeBSD and AMD specs. Many thanks to Johan Lindman <tybollt@solace.mh.se> for providing access to the testing machine. ok gluk@
2003-02-13Add cable detection for AMD chips, directly from AMD specs.Alexander Yurchenko
Tested by todd@; ok gluk@
2003-02-13support for 3C905B internal PHY; markus@ ok.Federico G. Schwindt
2003-02-13add 3C905B internal PHY.Federico G. Schwindt
2003-02-12move to 3.3-betaTheo de Raadt
2003-02-12move ddb_regs decl from .h to .c to avoid commonJason Wright
2003-02-12separate evirq into macintr and openpic versions (they just -happened- to beJason Wright
the same size). ok drahn
2003-02-12some comments on the pci bridges and dino is at phantomas not mainbusMichael Shalayeff
2003-02-12replace crc32 code with BSD licensed code from opensshMarkus Friedl
2003-02-12Put a pckbc-like "slot" locator for gsckbc children. Even if this has noMiod Vallat
sense inthe gsckbc world, the code currently requires this for proper attachment. Oops.
2003-02-12How uncommon... hppa only has one common: msgbufmapped (decl'd in /sys/kern)Jason Wright
2003-02-12disable tigon (uses arithmetic on bus_handle_t's)Jason Wright
2003-02-12It is not clear that the order of operations will be what the programmerHenric Jungheim
intended. (This fixes a gcc3 warning.) ok jason, millert
2003-02-12Address the NFS problems recently discussed in various threads.Daniel Hartmeier
Change semantics of scrub option 'no-df' slightly: if the option is used, it now also applies to _fragments_ with IP_DF set, not just to complete packets. Hence, adding 'no-df' to 'scrub in all fragment reassemble' allows to clear IP_DF from fragments, so they don't get dropped but reassembled. This affects several UDP protocols that used PMTU discovery, mostly Linux' NFS implementation. In short, if you have 'scrub in all' now, you probably want to change that to 'scrub in all no-df', unless you want to drop fragments with IP_DF set (some people have good reasons to do the latter, hence the non-default option). ok frantzen@, henning@, cedric@
2003-02-12in async mode, send SIGIO to the process group of the process thatMatthieu Herrb
requested the signal. This is coherent with what /dev/tty does and the current implementation of fcntl(F_SETOWN). Ok deraadt@
2003-02-12Labels should be followed by statements (fix gcc3 warning).Henric Jungheim
ok cedric, jason, theo
2003-02-12Labels must be followed by a statement. (Pointed out by gcc3.)Henric Jungheim
ok jason@
2003-02-12Remove commons; inspired by netbsd.Jason Wright