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
Nate Lawson
4c4381e288
Add an implementation of cpu_est_clockrate(9). This function estimates the
...
current clock frequency for the given CPU id in units of Hz.
2005-02-04 05:32:56 +00:00
Nate Lawson
a07c38209c
Add a new include to handle generic CPU interfaces.
2005-02-04 05:31:10 +00:00
Warner Losh
0ccd166961
Minor style nits
...
o remove unneeded {}
o no need to bzero sc
2005-02-04 02:32:43 +00:00
Peter Grehan
79393893e8
- recognize 7447A/7448 CPUs (used in miniMacs)
...
- enable 745x branch caches. Already enabled by OpenFirmware
on Macs, but reduces NetBSD diffs and usable by embedded folk.
Obtained from: NetBSD
2005-02-04 01:59:48 +00:00
Peter Grehan
6d2d8acaf4
- add wall_cmos_clock and adjkerntz variables, required by msdosfs
...
- support adjkerntz sysctl to silence NTP, though it's a null
implementation at the moment.
2005-02-04 01:41:38 +00:00
Peter Grehan
911e488a03
Convert bus_space_barrier() into a null inline function rather than an
...
empty macro to avoid many compile warnings in the USB code.
2005-02-04 01:27:21 +00:00
Peter Grehan
4e895c543a
- add definitions for MPC7447A/7448 (i.e. miniMac)
...
- expand MPC745X_P macro to include these
Obtained from: NetBSD
2005-02-04 01:17:04 +00:00
Peter Grehan
9e8e140099
HID0 updates:
...
- updated relevant models for High BAT enable bit
- fixed bug in BHTCLR/XAEN constants
- added LRSTK and FOLD bits
2005-02-04 01:14:38 +00:00
Warner Losh
e1500f0d18
Sort PANASONIC products numerically
2005-02-03 23:45:20 +00:00
Warner Losh
b73f46cfbb
takawata tells me that KXLC0003 also works with this driver, so add it
...
to the list. Note it is untested.
Also kill some whitespace at the end of the line...
2005-02-03 23:39:29 +00:00
Scott Long
176a8c17c6
Remove the entries for isp and ispfw instead of leaving them in an inconsistent
...
state.
2005-02-03 23:10:17 +00:00
Matthew N. Dodd
1f005b6723
- Split out PCI support.
...
- Add previously removed ISA support.
Submitted by: David S. Madole <david AT madole.net>
2005-02-03 23:01:01 +00:00
Ruslan Ermilov
2154e70d14
Connect ng_device(4) to the build.
2005-02-03 19:54:58 +00:00
John Baldwin
aa96fcdb61
Anytime we write to the RTC's status B register to possibly enable
...
interrupts, read from the interrupt status register to clear any pending
interrupts. Otherwise in some rare cases the RTC would never fire any
interrupts as it constantly thinks it has an interrupt pending.
PR: i386/17800
PR: kern/76776
Submitted by: Jose M. Alcaide jose at we dot lc dot ehu dot es
MFC after: 2 weeks
2005-02-03 19:06:03 +00:00
Sam Leffler
cb212bbc75
correct check for unicast key being setup; wpa_supplicant in particular
...
uses only the global key state so looking in the per-node key slot is wrong
Submitted by: Tai-hwa Liang
2005-02-03 16:21:07 +00:00
Ruslan Ermilov
27667f5821
MFlibc: Remove extra closing parenthesis.
2005-02-03 15:51:39 +00:00
Pawel Jakub Dawidek
f3830f0482
We do want to print '\n'/'\r'.
...
Pointed out by: stefanf
2005-02-03 15:47:30 +00:00
Pawel Jakub Dawidek
6513f57682
'c' cannot be -1.
...
Submitted by: stefanf
2005-02-03 15:23:27 +00:00
Pawel Jakub Dawidek
f627315f1e
- Move gets() function to libkern (I want to use it outside vfs_mount.c).
...
- Add buffer size limitations (overflow will not be possible anymore).
- Add 'visible' option, which will allow for passphrase reading in the
future.
- Remove special treatment of '@' and '#', those two are only confusing.
Discussed with: rwatson
MFC after: 2 weeks
2005-02-03 15:10:58 +00:00
Ruslan Ermilov
72369c34ac
Parse "getifname" using the standard parse string type.
...
Fixed an off-by-one error when dealing with interface name
(if_xname is NUL-terminated).
Don't waste time making a copy of if_xname in constructor.
2005-02-03 13:03:31 +00:00
Ruslan Ermilov
96f82336ba
Fixed an off-by-one error when dealing with interface name
...
(if_xname is NUL-terminated).
Don't waste time making a copy of if_xname in attach().
2005-02-03 12:54:18 +00:00
Ruslan Ermilov
bbb75d7844
Fixed an off-by-one error when dealing with interface name
...
(if_xname is IFNAMSIZ-sized and NUL-terminated).
2005-02-03 12:50:10 +00:00
Ruslan Ermilov
c60878f0d2
Added ASCII version of the NGM_EIFACE_GET_IFNAME message, "getifname".
2005-02-03 11:52:42 +00:00
Ruslan Ermilov
c266fbc2aa
Removed unused includes.
2005-02-03 11:28:53 +00:00
Robert Watson
faabfac9ff
When entering siocnputc() with (kdb_active), don't acquire (or
...
release) the sio spin mutex, as use of synchronization primitives in
the debugger can result in substantial problems. With this patch in
place entering the debugger via a serial console is made
substantially more reliable.
MFC after: 1 week
Tested by: kris
Discussed with: bde
2005-02-03 10:35:05 +00:00
Ruslan Ermilov
2f533ec052
Fix alignment in the last commit.
2005-02-03 08:07:22 +00:00
Peter Grehan
bd985cab34
- remove NO_MODULES since they've been working for some time
...
- add -fno-omit-framepointer to CFLAGS if DDB is enabled so
backtraces will still work when optimization is enabled.
Stolen from Makefile.amd64.
2005-02-03 06:28:17 +00:00
Peter Grehan
042bbe552f
Don't build syscons, uart or vpo on PPC.
2005-02-03 06:12:43 +00:00
Peter Grehan
6109ca7e1a
Fix up assignment of negative number to char. Char's are unsigned by
...
default on PowerPC.
Approved by: mdodd
2005-02-03 02:35:28 +00:00
Warner Losh
ddf71f18a9
MF dev/wi: merge the pccard lists.
...
# this hasn't compiled for two weeks and no one noticed!
MFC After: 7 days or so
2005-02-03 00:40:35 +00:00
Peter Grehan
55a5dcc8fe
Don't lose the frame pointer for PPC modules: backtrace doesn't work.
2005-02-02 23:44:24 +00:00
Jeff Roberson
9087d86e66
- Use a seperate malloc tag for saved inode contents to help in debugging
...
memory modified after free errors.
Sponsored by: Isilon Systems, Inc.
2005-02-02 20:30:47 +00:00
Jeff Roberson
ff05fd5d77
- Correct a typo in kern_rename. tvfslocked should be initialized from
...
tond and not fromnd. This could lead us to leak Giant, or unlock it
twice, depending on the filesystems involved. renames within a single
filesystem would not have caused any problems.
Sponsored by: Isilon Systems, Inc.
2005-02-02 17:17:15 +00:00
Robert Watson
f2ccd228d1
Define SI_SUB_AUDIT, the system boot event to initialize the audit
...
subsystem.
Obtained from: TrustedBSD Project
Submitted by: Wayne Salamon <wsalamon at computer dot org>
2005-02-02 14:41:03 +00:00
Robert Watson
9b9f45231e
Add a stub audit_kevents.h, which defines exactly one audit event:
...
AUE_NULL. This is a place-holder to allow other audit infrastructure
to be introduced, such as an updated syscalls.master file format,
while the license on the real audit_kevents.h is fixed.
2005-02-02 14:27:36 +00:00
Ken Smith
87c29bf93e
Back out previous commit, bde@ provided an example of something this
...
breaks.
2005-02-02 14:21:01 +00:00
Ruslan Ermilov
fcee8ae2e5
Fix the comment.
2005-02-02 14:02:40 +00:00