Nate Lawson
26d5f7dfa7
Don't print out a failure message when an attach for FFixedHW fails.
...
Instead, just fail to attach so another hardware-specific driver can
claim the device. Also, clean up some small memory leaks in the failure
case.
2005-02-04 18:09:01 +00:00
Nate Lawson
b68b14adaf
Return a special status of "not supported" for functional fixed hardware
...
since this type of register should be handled by another driver.
2005-02-04 18:07:03 +00:00
Warner Losh
c4241acbb3
Don't rely on indirect inclusion of machine/bus.h to use
...
bus_space_{read,write}_* routines. This doesn't matter in the current
tree, but will matter soon (the rest of the tree appears to already be
clean).
2005-02-04 17:33:31 +00:00
Jeff Roberson
42a29039de
- Add ke_runq == NULL to the conditions which will cause us to abort
...
adjusting timeshare loads in sched_class(). This is only important if
the thread has never run, otherwise the state checks should work as
expected.
2005-02-04 17:22:46 +00:00
Hartmut Brandt
2e0af0312e
Where the returned line length from Buf_GetAll is not used just pass
...
a NULL to the function. Delete the now unused local variables.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 16:53:35 +00:00
Hartmut Brandt
f4dd241033
Rewrite of the buf code:
...
- convert Buf_AddByte from a macro to a function
- move #define's into the header file
- remove unused field in struct Buffer
- remove size fields - they can be easily computed
- inline Buf_OvAddByte
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 16:48:35 +00:00
Christian Brueffer
0ed0329f9c
Add a Token Ring section which lists devices supported by oltr(4) for now.
2005-02-04 16:45:11 +00:00
Christian Brueffer
69bef09c4e
Add oltr(4)
2005-02-04 16:43:59 +00:00
Gleb Smirnoff
7a1725fc46
- Fix build with TRACE_MESSAGES defined
...
- Remove extra parenthesis
2005-02-04 16:08:20 +00:00
Yoshihiro Takahashi
c94fa11fc4
cosmetic changes.
2005-02-04 15:34:52 +00:00
Yoshihiro Takahashi
328a9c4f3d
The bs and wdc drivers are gone.
2005-02-04 15:29:54 +00:00
Hajimu UMEMOTO
6d0a982bdf
teach scope of IPv6 address to net.inet6.tcp6.getcred.
...
MFC after: 1 week
2005-02-04 14:43:05 +00:00
David Schultz
79b990338f
Move machine-dependent crud to its own makefile.
2005-02-04 14:33:39 +00:00
David Schultz
e1b61b5b93
Remove wrappers and other cruft intended to support SVID, mistakes in
...
C90, and other arcana. Most of these features were never fully
supported or enabled by default.
Ok: bde, stefanf
2005-02-04 14:08:32 +00:00
Xin LI
76628ce773
Save last displayed file by having the "last" pointer global and save it
...
during we show the first file's tail. Instead of:
tarsier% tail -f 1 2
==> 1 <==
foo
bar
==> 2 <==
bar
foo
==> 2 <==
bar2
foo2
Now with this change, we have:
tarsier% tail -f 1 2
==> 1 <==
foo
bar
==> 2 <==
bar
foo
bar2
foo2
While I'm there, move a comment to where it should belong to. Also,
const'ify the "last" static because we will never need to change the
contents it points to.
MFC After: 1 week
2005-02-04 14:01:06 +00:00
Yoshihiro Takahashi
f787023e5a
Fix pc98 support (broken by previous change).
2005-02-04 13:37:21 +00:00
Yoshihiro Takahashi
9f83151765
Merged from sys/dev/sio/sio.c revision 1.457.
2005-02-04 13:35:21 +00:00
Yoshihiro Takahashi
0faf078231
MFi386: revision 1.605.
2005-02-04 13:34:24 +00:00
Hartmut Brandt
b8900c134b
None of the users of Buf_Discard used it to get rid of only a part of
...
the buffer. So replace Buf_Discard by Buf_Clear which just gets rid
of the entire contents.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 13:34:16 +00:00
Yoshihiro Takahashi
2e047e2eb8
MFi386: revision 1.514.
2005-02-04 13:33:46 +00:00
Hartmut Brandt
8e1c246001
Inline the ADDWORD() macro in the two places where it is used. It just
...
obfuscates the code.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 13:29:50 +00:00
Hartmut Brandt
c8bd426d66
Use _exit() instead of exit() when the exec() after a vfork() fails.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 13:26:37 +00:00
Hartmut Brandt
8ffb687e64
Move PrintAddr() from util.c into suff.c - the only file where it is
...
actuall used, and make it static.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 13:23:39 +00:00
Hartmut Brandt
ce8c7083f4
General whitespace cleanup: remove mixes of tabs and spaces, remove
...
space after function names, remove spaces on emtpy lines.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 12:38:57 +00:00
Hartmut Brandt
435916b011
Minor cleanup: make brk_string to return argc only if the pointer to it
...
was non-NULL. This let's us eliminated an otherwise unused variable.
shellneeded can never return -1 so there is no need to check for it and
hence no need for a variable to hold the returned value.
Submitted by: Max Okumoto <okumoto@ucsd.edu> (partly)
2005-02-04 12:30:54 +00:00
Hartmut Brandt
acd5b69dd1
Further constification. Use a temporary hack (copying the input string)
...
until Var_Subst is fixed.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 12:10:20 +00:00
Ceri Davies
fa5c581ccf
Quote example file names consistently, and fix a small grammatical nit.
2005-02-04 11:37:49 +00:00
Pawel Jakub Dawidek
2c7f46173e
Improve EIO error description and mention that it can also occur while
...
writting.
MFC after: 3 days
2005-02-04 11:18:46 +00:00
Xin LI
8f70b0946d
This commit was generated by cvs2svn to compensate for changes in r141261,
...
which included commits to RCS files with non-trunk default branches.
2005-02-04 08:41:44 +00:00
Xin LI
8c384020b3
Import a (stripped) snapshot of OpenBSD's nc(1) an excellent
...
reimplementation of the famous tool that can do arbitrary TCP
and UDP connections and listens.
This gaves sysadm the same tool the crackers have, so that
they may learn what the network is about and protect it better.
For developers, this is an invaluable debugging tool, and a
good build block of scripts.
Discussed on: freebsd-hackers@
2005-02-04 08:41:44 +00:00
Hartmut Brandt
8cfa18d178
Use an extra variable to assign to instead of missusing an input
...
parameter. This will help in constification.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 08:31:42 +00:00
Hartmut Brandt
fec9b45897
Replace space, tab mixes by tabs.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 08:15:11 +00:00
Hartmut Brandt
f6dc7bd983
Use tabs to move to the comments instead of wild mixes of tabs and spaces.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 08:11:58 +00:00
Hartmut Brandt
a9fe0a1150
Style: line up with tabulators.
2005-02-04 08:03:55 +00:00
Hartmut Brandt
141d5e9f62
Use a typedef for the conditional handler function so that declaring
...
pointers to these functions is easier.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 08:02:41 +00:00
Hartmut Brandt
7a551242f8
Style: remove a space between a function name and the opening
...
paranthesis.
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 07:56:40 +00:00
Hartmut Brandt
e23bc3a201
Some more easy constification.
...
Submitted by: Max Okumoto <okumoto@ucsd.edu>
2005-02-04 07:51:00 +00:00
Nate Lawson
7d3a06201d
Make the devclass static for now until deciding whether to share them.
2005-02-04 07:25:44 +00:00
Nate Lawson
d639e9636d
Bump __FreeBSD_version for cpufreq addition. Requested by marcus@
2005-02-04 06:59:58 +00:00
Nate Lawson
a287c0ffaf
Sort includes a little so that bus.h comes before cpu.h (for device_t).
2005-02-04 06:58:09 +00:00
Marcel Moolenaar
6fb59928a6
Include sys/bus.h before sys/cpu.h. The latter needs device_t.
2005-02-04 06:38:58 +00:00
Suleiman Souhlal
81ae703462
Set the scheduling class of the zeroidle thread to PRI_IDLE.
...
Reviewed by: jhb
Approved by: grehan (mentor)
MFC after: 1 week
2005-02-04 06:18:31 +00:00
Suleiman Souhlal
339a7e7fbb
Set the scheduling class of the idle threads to PRI_IDLE.
...
While there, set their priority with sched_prio() instead of changing it
'by hand'.
Reviewed by: jhb
Approved by: grehan (mentor)
2005-02-04 06:16:05 +00:00
Nate Lawson
dbfdf1736b
MFi386: Merge updates to the cpu pseudo-driver. Compile, not runtime
...
tested.
2005-02-04 06:02:37 +00:00
Nate Lawson
335e4ff3cd
Hook up the cpufreq framework, acpi_perf(4), and cpufreq(4) drivers.
2005-02-04 05:49:36 +00:00
Nate Lawson
6cb2040baf
Add the ACPI Performance states driver. This driver offers two or more
...
settings as exported via the ACPI _PSS method. OEMs use this interface
to encapsulate chipset or processor-specific methods (e.g., SpeedStep or
Powernow) and export their settings in a standard way. On systems that
have valid ACPI Performance states and a hardware-specific driver (e.g.,
ichss), acpi_perf(4) is preferred.
2005-02-04 05:45:07 +00:00
Nate Lawson
6c7b11ccfa
Add a cpufreq driver for the SpeedStep capability in the ICH chipset. This
...
driver offers two settings. Information for this driver was obtained from
the Intel datasheets and by reviewing the Linux driver.
2005-02-04 05:42:29 +00:00
Nate Lawson
73347b071d
Add the cpufreq framework. This code manages multiple drivers and presents
...
a unified kernel and user interface for controlling cpu frequencies.
2005-02-04 05:39:19 +00:00
Nate Lawson
bfdbeca163
Add an interface for cpufreq. The kernel interface lets other drivers
...
select the CPU frequency level (say for cooling). The driver interface
allows hardware drivers to announce themselves as capable of adjusting
an individual frequency setting.
2005-02-04 05:38:30 +00:00
Nate Lawson
98aa9cd052
Update the CPU attachments to return CPU_IVAR_PCPU as well as pass on
...
appropriate requests to any children.
2005-02-04 05:36:40 +00:00