summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Range check the syscall number before looking it up in the syscallnames[]jhb2003-04-307-8/+8
| | | | | | array. Submitted by: pho
* Use %j instead of %q in printf to unbreak sparc64.phk2003-04-301-3/+4
|
* Fix some easy, global, lint warnings. In most cases, this meansmarkm2003-04-3028-32/+28
| | | | | making some local variables static. In a couple of cases, this means removing an unused variable.
* Warns fixing. Protect against inappropriate linting, and markmarkm2003-04-302-2/+16
| | | | | GCC-specific assemble code as such (in #ifdefs). Fix an easy static variable warning while I'm here.
* Help out with linting. Print the ${LINT} command line. This makesmarkm2003-04-301-1/+1
| | | | the all-important -DFOO -IBAR options "hang out".
* Make bitfields plain old u_int. u_int16_t makes no sense.markm2003-04-301-6/+6
|
* Release devq before detach.simokawa2003-04-301-0/+3
|
* Set status to FWDEVINVAL if probe failed.simokawa2003-04-301-6/+7
|
* o Don't announce that the timer is good when in fact it isn't timingmarcel2003-04-301-22/+43
| | | | | | | | | | | | | | | | at all (ie reads yield constant values). Display the width as the difference between max and min so that constant timers have width zero. o Get the address of the timer from the XPmTmrBlk field instead of the V1_PmTmrBlk field. The former is a generic address and can specify a memory mapped I/O address. Remove <machine/bus_pio.h> to account for this. The timer is now properly configured on machines with ACPI v2 tables, whether PIO or MEMIO. Note that the acpica code converts v1 tables into v2 tables so the address is always present in XPmTmrBlk. o Replace the TIMER_READ macro with a call to the read_counter() function and add a barrier to make sure that we observe proper ordering of the reads.
* Fix tpyo in last commit.imp2003-04-301-1/+1
| | | | Noticed by: kuriyama-san
* Eliminate an unused parameter from vm_pageout_object_deactivate_pages().alc2003-04-301-6/+5
|
* Get rid of the redundant 'gone' field, and overload suspend instead.imp2003-04-302-13/+12
| | | | | | | | | | | | | | Check for suspend before the device polling, rather than after it. Check to see if the current thread owns the lock in ioctl and return EBUSY if it does. This advances the locking to the point that I can eject my fxp card 10 times in a row, but I agree with Jeff Hsu that we need to get the network layer locking finished before chasing more of the races here (actually, he doesn't think this set is worth it even). There's a number of races between FXP_LOCK in detach and all other users of FXP_LOCK, and this gets back to the 'device with sleepers being forcibly detached' problem as well...
* Increase some default values.davidxu2003-04-302-4/+4
|
* Add vm_object locking to vmspace_swap_count().alc2003-04-301-5/+6
|
* Add support to CAM for devices with more than 2^32 blocks. (2TB if you'reken2003-04-304-88/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | using 512 byte blocks). cam_ccb.h: Bump up volume_size and cylinders in ccb_calc_geometry to 64 bits and 32 bits respectively, so we can hold larger device sizes. cylinders would overflow at about 500GB. Bump CAM_VERSION for this change. Note that this will require a recompile of all applications that talk to the pass(4) driver. scsi_all.c: Add descriptions for READ/WRITE(16), update READ/WRITE(12) descriptions, add descriptions for SERVICE ACTION IN/OUT. Add a new function, scsi_read_capacity_16(), that issues the read capacity service action. (Necessary for arrays larger than 2^32 sectors.) Update scsi_read_write() to use a 64 bit LBA and issue READ(16) or WRITE(16) if necessary. NOTE the API change. This should be largely transparnet to most userland applications at compile time, but will break binary compatibility. The CAM_VERSION bump, above, also serves the purpose of forcing a recompile for any applications that talk to CAM. scsi_all.h: Add 16 byte READ/WRITE structures, structures for 16 byte READ CAPACITY/SERVICE ACTION IN. Add scsi_u64to8b() and scsi_8btou64. scsi_da.c: The da(4) driver probe now has two stages for devices larger than 2TB. If a standard READ CAPACITY(10) returns 0xffffffff, we issue the 16 byte version of read capacity to determine the true array capacity. We also do the same thing in daopen() -- use the 16 byte read capacity if the device is large enough. The sysctl/loader code has also been updated to accept 16 bytes as a minimum command size.
* Add missing crom_next() in the previous revision.simokawa2003-04-291-1/+3
|
* Add definitions for IN6ADDR_LINKLOCAL_ALLMDNS_INIT and INADDR_ALLMDNS_GROUP.mdodd2003-04-292-0/+4
|
* IP_RECVTTL socket option.mdodd2003-04-294-1/+20
| | | | Reviewed by: Stuart Cheshire <cheshire@apple.com>
* Allow fast instruction and data access mmu miss traps to be handled byjake2003-04-293-9/+11
| | | | user trap handlers.
* Fix an obscure fencepost error in GBDE's sector mapping code:phk2003-04-291-0/+26
| | | | | | | | | | | | | | | For certain combinations of sectorsize, mediasize and random numbers (used to define the mapping), a multisector read or write would ignore some subset of the sectors past the first sector in the request because those sectors would be mapped past the end of the parent device, and normal "end of media" truncation would zap that part of the request. Rev 1.19+1.20 of g_bde_work.c added the check which should have alerted me to this happening. This commit maps the request correctly and adds KASSERTS to make sure things stay inside the parent device. This does not change the on-disk layout of GBDE, there is no need to backup/restore.
* Typo in last commit: Do not press xZZ to leave vi(1).phk2003-04-291-1/+1
|
* When a bio comes back from below with a zero error code, check thatphk2003-04-291-0/+4
| | | | | | | it wrote the full length. The only case where this should be able to happen is if we try to read/write past the end and the request is truncated. We obviously should never try to do that, so this code should never activate.
* Catch up with the new acpi files.njl2003-04-291-21/+24
|
* Resolve conflicts.njl2003-04-2917-330/+515
|
* Support functions for the new ACPI import.njl2003-04-297-24/+143
| | | | | | | | | | | * AcpiOsDerivePciId(): finds a bus number, given the slot/func and the acpi parse tree. * AcpiOsPredefinedOverride(): use the sysctl hw.acpi.os_name to override the value for _OS. Ideas from: takawata, jhb Reviewed by: takawata, marcel Tested on: i386, ia64
* Remove unused declarations and definitions.alc2003-04-291-6/+0
|
* Updated import-preparation script. It now removes vendor paths from headernjl2003-04-291-2/+17
| | | | info. With these changes, no manual prep of the dist was necessary.
* Resolve conflictsnjl2003-04-291-85/+46
|
* This commit was generated by cvs2svn to compensate for changes in r114239,njl2003-04-294-0/+1690
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Intel ACPI 20030228 vendor distributionnjl2003-04-294-0/+1690
| |
* | This commit was generated by cvs2svn to compensate for changes in r114237,njl2003-04-29133-4526/+4359
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Import of Intel ACPI 20030228 vendor distributionnjl2003-04-29151-4901/+4925
| |
* | Add media types and options for ATM. While on most ATM cards media cannotharti2003-04-292-0/+63
| | | | | | | | | | | | | | | | be changed, it is very convenient to be able to toggle SDH/Sonet, idle/unassigned cells and scrambled mode and to see the carrier state. Reviewed by: -arch (if_media.h definitions)
* | Initialize tbuf in newstat_copyout() too.mbr2003-04-291-0/+1
| | | | | | | | Reviewed by: phk
* | Set recv.len to zero if we get no response.simokawa2003-04-291-1/+4
| |
* | Get correct firmware/model information for multiple unit directories.simokawa2003-04-291-0/+4
| |
* | Fix indentation.simokawa2003-04-291-13/+13
| |
* | Deprecate machine/limits.h in favor of new sys/limits.h.kan2003-04-2962-521/+86
| | | | | | | | | | | | | | Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
* | Move CSR definitions to iec*.h from firewirereg.h.simokawa2003-04-293-28/+28
| |
* | Do the same thing for stat64_copyout() as we alreadymbr2003-04-291-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | do for newstat_copyout(). Lie about disk drives which are character devices in FreeBSD but block devices under Linux. PR: 37227 Submitted by: Vladimir B. Grebenschikov <vova@sw.ru> Reviewed by: phk MFC after: 2 weeks
* | Revamp the newbus functions:marcel2003-04-293-986/+653
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o do not use the in* and out* functions. These functions are used by legacy drivers and thus must have ia32 compatible behaviour. Hence, they need to have fences. Using these functions for newbus would then pessimize performance. o remove the conditional compilation of PIO and/or MEMIO support. It's a PITA without having any significant benefit. We always support them both. Since there are no I/O ports on ia64 (they are simulated by the chipset by translating memory mapped I/O to predefined uncacheable memory regions) the only difference between PIO and MEMIO is in the address calculation. There should be enough ILP that can be exploited here that making these computations compile-time conditional is not worth it. We now also don't use the read* and write* functions. o Add the missing *_8 variants. They were missing, although not missed. It's for completeness. o Do not add the fences that were present in the low-level support functions here. We're using uncacheable memory, which means that accesses are in program order. Change the barrier implementation to not only do a memory fence, but also an acceptance fence. This should more reliably synchronize drivers with the hardware. The memory fence enforces ordering, but does not imply visibility (ie the access does not necessarily have happened). This is what the acceptance deals with. cpufunc.h cleanup: o Remove the low-level memory mapped I/O support functions. They are not used. Keep the low-level I/O port access functions for legacy drivers and add fences to ensure ia32 compatibility. o Remove the syscons specific functions now that we have moved the proper definitions where they belong. o Replace the ia64_port_address() and ia64_memory_address() functions with macros. There's a bigger change inline functions get inlined when there aren't function callsi and the calculations are simply enough to do it with macros. Replace the one reference to ia64_memory address in mp_machdep.c to use the macro.
* | panic() doesn't need \nsuz2003-04-296-53/+53
| | | | | | | | | | Obtained from: KAME MFC after: 2 days
* | Add module data and version to the atm_subr and reference this info from theharti2003-04-295-8/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (currently) only consumer (en). Add a sysctl node hw.atm where the atm drivers will hook on their hardware sysctl sub-trees. Make atm_ifattach call if_attach and remove the corresponding call to if_attach from en. Create atm_ifdetach and use that in en. While the last change actually changes the interface this is not a problem in practice because the only other consumer of this API is an older LANAI driver on the net, that is not ready for current anyway. Reviewed by: -atm
* | Keep syscons specific I/O functions internal/specific to syscons onmarcel2003-04-291-1/+27
| | | | | | | | | | | | | | ia64 by defining them in terms of newbus. Add a static inline for fillw(), which doesn't have anything to do with I/O. It's still ugly, but now the ugliness can be removed from ia64 specific headers.
* | - Remove unnecessary useracc() calls from osf1_sigreturn().alc2003-04-291-12/+3
| |
* | Fix typo on O2Micro devices names.imp2003-04-291-2/+2
| | | | | | | | Submitted by: noda-san
* | (5) from last commit was omitted by mistake:imp2003-04-291-0/+3
| | | | | | | | (5) Return immediately from fxp_intr() if gone is set.
* | Fix 5 bugs:imp2003-04-292-8/+11
| | | | | | | | | | | | | | | | | | | | | | 1) always call fxp_stop in fxp_detach. Since we don't read from the card, there's no need to carefully look at things with bus_child_present. 2) Call FXP_UNLOCK() before calling bus_teardown_intr to avoid a possible deadlock reported by jhb. 3) add gone to the softc. Set it to true in detach. 4) Return immediately if gone is true in fxp_ioctl 5) Return immediately if gone is true in fxp_intr
* | Sort lines.marcel2003-04-291-44/+44
| |
* | MFi386: revision 1.1086.nyan2003-04-291-6/+0
| |
OpenPOWER on IntegriCloud