summaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove new options and my prevention of system freeze when the sio probeDoug Ambrisko2004-05-033-79/+49
| | | | | | | | | | returns okay when HW probe fails. This happens when comconsole flag is set but VGA console is used instead. Back out requested by: bde (He will be looking at other solutions from scratch) Notes: svn path=/head/; revision=128899
* Update copyright.Robert Watson2004-05-031-1/+1
| | | | Notes: svn path=/head/; revision=128897
* When performing label assertions on an mbuf header label in mac_test,Robert Watson2004-05-031-2/+3
| | | | | | | | | | | | | test the label pointer for NULL before testing the label slot for permitted values. When loading mac_test dynamically with conditional mbuf labels, the label pointer may be NULL if the mbuf was instantiated while labels were not required on mbufs by any policy. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research Notes: svn path=/head/; revision=128896
* Allow geom_concat and geom_gate to be compiled in kernel.Pawel Jakub Dawidek2004-05-033-0/+6
| | | | Notes: svn path=/head/; revision=128893
* Connect geom_gate.ko to the build.Pawel Jakub Dawidek2004-05-031-0/+1
| | | | Notes: svn path=/head/; revision=128891
* Turn off debugging by default.Pawel Jakub Dawidek2004-05-031-1/+1
| | | | Notes: svn path=/head/; revision=128889
* Prefer signed type over unsigned to be able to assert negativePawel Jakub Dawidek2004-05-031-1/+1
| | | | | | | reference count. Notes: svn path=/head/; revision=128887
* Bump copyright date for NETA to 2004.Robert Watson2004-05-033-3/+3
| | | | Notes: svn path=/head/; revision=128886
* Add MAC_STATIC, a kernel option that disables internal MAC FrameworkRobert Watson2004-05-034-0/+76
| | | | | | | | | | | | | synchronization protecting against dynamic load and unload of MAC policies, and instead simply blocks load and unload. In a static configuration, this allows you to avoid the synchronization costs associated with introducing dynamicism. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research Notes: svn path=/head/; revision=128885
* - Hold g_gate_list_mtx lock while generating/checking unit number.Pawel Jakub Dawidek2004-05-031-5/+9
| | | | | | | | | Found by: mtx_assert() g_gate.c:273 - Set command before returning to userland with ENOMEM error value. Found by: assert() ggatel.c:108 Notes: svn path=/head/; revision=128881
* o Fix misindentation in the previous commit.Maxim Konovalov2004-05-032-12/+11
| | | | Notes: svn path=/head/; revision=128880
* Back out a change that slipped into the previous commit for which otherAndre Oppermann2004-05-031-10/+2
| | | | | | | | | supporting parts have not yet been committed. Remove pre-mature IP options ignoring option. Notes: svn path=/head/; revision=128877
* Oops, switch to using the moved cy driver for pc98 too (remove pointersBruce Evans2004-05-032-3/+1
| | | | | | | to old files in files.pc98 and "count" parameter in NOTES). Notes: svn path=/head/; revision=128876
* - Add an IMEN_MASK macro that returns the 8-bit bitmask of an atpicJohn Baldwin2004-05-031-8/+16
| | | | | | | | | | | interrupt source. - Only do an outb() to the PIC to clear a bit in imen if the bit is set. - Add a NUM_ISA_IRQS macro to replace uglier 'sizeof(array) / sizeof(member)' expressions along with a CTASSERT() to ensure that the macro is correct. Notes: svn path=/head/; revision=128875
* Make the legacy_pcib_attach() function static.John Baldwin2004-05-032-2/+1
| | | | Notes: svn path=/head/; revision=128874
* Use a private attach method for the MP Table host-PCI bridge driver ratherJohn Baldwin2004-05-031-1/+9
| | | | | | | | | than using legacy_pcib_attach(). The MP Table drivers don't use the $PIR, and the legacy_pcib_attach() function probes and parses the $PIR in addition to adding the pci bus child device. Notes: svn path=/head/; revision=128873
* Optimize IP fastforwarding some more:Andre Oppermann2004-05-031-95/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o New function ip_findroute() to reduce code duplication for the route lookup cases. (luigi) o Store ip_len in host byte order on the stack instead of using it via indirection from the mbuf. This allows to defer the host byte conversion to a later point and makes a quicker fallback to normal ip_input() processing. (luigi) o Check if route is dampned with RTF_REJECT flag and drop packet already here when ARP is unable to resolve destination address. An ICMP unreachable is sent to inform the sender. o Check if interface output queue is full and drop packet already here. No ICMP notification is sent because signalling source quench is depreciated. o Check if media_state is down (used for ethernet type interfaces) and drop the packet already here. An ICMP unreachable is sent to inform the sender. o Do not account sent packets to the interface address counters. They are only for packets with that 'ia' as source address. o Update and clarify some comments. Submitted by: luigi (most of it) Notes: svn path=/head/; revision=128872
* Link state change notification of ethernet media to the routing socket.Andre Oppermann2004-05-034-4/+52
| | | | | | | | | | | | | | | | | | o Extend the if_data structure with an ifi_link_state field and provide the corresponding defines for the valid states. o The mii_linkchg() callback updates the ifi_link_state field and calls rt_ifmsg() to notify listeners on the routing socket in addition to the kqueue KNOTE. o If vlans are configured on a physical interface notify and update all vlan pseudo devices as well with the vlan_link_state() callback. No objections by: sam, wpaul, ru, bms Brucification by: bde Notes: svn path=/head/; revision=128871
* Correct the phy_service() routine case MII_TICK to correctly trackAndre Oppermann2004-05-0310-20/+22
| | | | | | | | | | | | | the falling edge of a media state change. This is in preparation for media state change notification to the routing socket. No objections by: sam, wpaul, ru, bms Brucification by: bde Notes: svn path=/head/; revision=128870
* Fix off by one error.Poul-Henning Kamp2004-05-031-0/+1
| | | | Notes: svn path=/head/; revision=128867
* use correct address for SADB_EXT_ADDRESS_DST in key_do_allocsa_policySam Leffler2004-05-031-2/+2
| | | | | | | | | | | (was using src instead of dst) Submitted by: Bjoern A. Zeeb Obtained from: KAME MFC after: 1 day Notes: svn path=/head/; revision=128860
* correct behaviour of key_getsavbyspi broken in rev 1.7; corrects problems withSam Leffler2004-05-031-2/+2
| | | | | | | | | removing specific SPIs Submitted by: Bjoern A. Zeeb Notes: svn path=/head/; revision=128859
* Floating-point faults and exceptions can happen in the kernel too.Marcel Moolenaar2004-05-031-12/+15
| | | | | | | | | Do not panic when it happens; handle them. Run into by: das Notes: svn path=/head/; revision=128857
* add support to prefer old SA to new SA during allocationSam Leffler2004-05-031-18/+27
| | | | | | | | | | | (makes net.key.preferred_oldsa work as for KAME) Submitted by: gabor@sentex.net Reviewed by: Bjoern A. Zeeb MFC after: 1 day Notes: svn path=/head/; revision=128856
* Fix a race condition which could result in profprocs being decrementedColin Percival2004-05-031-0/+2
| | | | | | | | more than once if stopprofclock is called multiple times on the same process. Notes: svn path=/head/; revision=128852
* Catch- and cleanup:Marcel Moolenaar2004-05-031-30/+35
| | | | | | | | | | o Fix and improve comments and references, o Add PFIL_HOOKS, UFS_ACL and UFS_DIRHASH, o Switch from SCHED_4BSD to SCHED_ULE, o Remove SCSI_DELAY (there's no SCSI support), Notes: svn path=/head/; revision=128850
* Commit three imported bugfixes from OpenBSD 3.4-stable:Daniel Hartmeier2004-05-023-19/+16
| | | | | | | | | | | | | | - change pf_get_pool() argument rule_number type from u_int32_t to u_int8_t, fixes corruption of address pools with large rulesets (mcbride@) - prevent endless loops with route-to (dhartmei@) - limit option length to 2 octets max (frantzen@) Obtained from: OpenBSD Approved by: mlaier(mentor), bms(mentor) Notes: svn path=/head/; revision=128846
* Add option GEOM_GPT. This brings the ability to have a large number ofMarcel Moolenaar2004-05-026-0/+6
| | | | | | | partitions on a single disk. Notes: svn path=/head/; revision=128845
* Quirk for Neuros USB audio device.Nate Lawson2004-05-021-0/+8
| | | | | | | | PR: kern/63645 Submitted by: Aron Stansvik <elvstone@osdever.net> Notes: svn path=/head/; revision=128840
* Spell Ethernet correctly.David E. O'Brien2004-05-027-45/+45
| | | | Notes: svn path=/head/; revision=128838
* Make it compile on 64-bit architectures.Pawel Jakub Dawidek2004-05-022-26/+26
| | | | | | | | The biggest issue was that 16-bit atomic operations aren't supported on all architectures. Notes: svn path=/head/; revision=128835
* Rename m_claim_next_hop() to m_claim_next(), as suggested by Max Laier.Darren Reed2004-05-025-5/+5
| | | | Notes: svn path=/head/; revision=128829
* oops, I forgot this file in a prior commit (change was still sitting here,Darren Reed2004-05-022-2/+2
| | | | | | | | | | | uncommitted): Rename ip_claim_next_hop() to m_claim_next_hop(), give it an extra arg (the type of tag to claim) and push it out of ip_var.h into mbuf.h alongside all of the other macros that work ok mbuf's and tag's. Notes: svn path=/head/; revision=128828
* Sync to 1.173 of usbdevsMIHIRA Sanpei Yoshiro2004-05-022-2/+9
| | | | Notes: svn path=/head/; revision=128826
* Add support SUNTAC U-Cable type A4 (AS144L4)MIHIRA Sanpei Yoshiro2004-05-022-0/+3
| | | | | | | | | | http://www.sun-denshi.co.jp/scc/products/mobile/as144l4/as144l4.htm (in Japanese) PR: kern/66144 Submitted by: KURASHINA Hideyuki <rushani@FreeBSD.org> Notes: svn path=/head/; revision=128825
* Rename ip_claim_next_hop() to m_claim_next_hop(), give it an extra argDarren Reed2004-05-024-18/+19
| | | | | | | | (the type of tag to claim) and push it out of ip_var.h into mbuf.h alongside all of the other macros that work ok mbuf's and tag's. Notes: svn path=/head/; revision=128816
* Remove old cy driver files. They have been repo-copied to sys/dev/cy andBruce Evans2004-05-024-3481/+0
| | | | | | | sys/dev/ic and adjusted to work there. Notes: svn path=/head/; revision=128815
* Switch to using the moved cy driver (adjust pathnames and remove "count"Bruce Evans2004-05-023-3/+4
| | | | | | | | | | | parameter). Keep using it only in the i386 NOTES for now. It is fairly MI, but it doesn't use bus-space and has a couple of i386 i/o instructions in pci intitialization. Notes: svn path=/head/; revision=128814
* Remove the static reservation of the asr major numberScott Long2004-05-022-3/+0
| | | | Notes: svn path=/head/; revision=128813
* Remove the defAlignLong and getAlignLong macros. I guess that the originalScott Long2004-05-021-103/+91
| | | | | | | | | | intent was to make sure that message structs allocated off of the stack were 4-byte aligned. However, the macros as defined did absolutely nothing. And since I2O forces you to manually copy messages down to the hardware, there really is no point of enforced alignment anyways. Notes: svn path=/head/; revision=128812
* Remove the bogus printing of the asr control device major number. AlsoScott Long2004-05-021-2/+1
| | | | | | | | | | rename the control device from rasr%d to asr%d. This starts us down the path of divorcing ourselves from a very bogus design in the management apps. Since the apps are open source now, they will likely be updated and fixed before 5.3. Notes: svn path=/head/; revision=128807
* Reduce differences with cy_isa.c: fixed an unsorted include.Bruce Evans2004-05-011-5/+1
| | | | | | | Remove unused includes. Notes: svn path=/head/; revision=128805
* Reduce differences with cy_pci.c: add a description of this file, andBruce Evans2004-05-011-3/+7
| | | | | | | | | don't use too many tabs in declarations. Attempt to complete KNFization of this file (1 more indentation fix). Notes: svn path=/head/; revision=128804
* Adjust pathnames for the move from i386/isa to dev/cy.Bruce Evans2004-05-013-15/+16
| | | | | | | | | Adjust staticness and a variable name for the split of cy.c into cy.c and cy_isa.c. Use the new header required for the split to avoid repeating declarations in cy_pci.c. Notes: svn path=/head/; revision=128800
* New header for exporting declarations of things not closely related toBruce Evans2004-05-011-0/+36
| | | | | | | | hardware. A couple of the declarations were misplaced in cy_pci.c, and cy_isa.c needs a couple more. The exported interfaces should be cleaner. Notes: svn path=/head/; revision=128799
* Removed bits related to isa configuration. These have been moved toBruce Evans2004-05-011-108/+0
| | | | | | | | cy_isa.c via a repo-copy of this file (except for some static declarations which will become non-static in a new header). Notes: svn path=/head/; revision=128798
* Remove bits not related to isa configuration. This file was repo-copiedBruce Evans2004-05-011-2863/+0
| | | | | | | from cy.c. Notes: svn path=/head/; revision=128797
* - Remove obsolete examples.Yoshihiro Takahashi2004-05-012-64/+50
| | | | | | | | - Add a comment about meaning of flags. - Disable unused defines. Notes: svn path=/head/; revision=128796
* Merged from sys/dev/sio/sio.c revision 1.428.Yoshihiro Takahashi2004-05-012-98/+152
| | | | Notes: svn path=/head/; revision=128795
* Correctly test *Reply_Ptr in ASR_resetIOP(). Thanks to dhartmei for pointingScott Long2004-05-011-1/+1
| | | | | | | this out. Notes: svn path=/head/; revision=128794