bouyer
f7c2f13a54
Properly setup timings for ata-4 controllers, including UDMA modes.
...
Tested on a brand new ("dual USB ?") ibook.
2001-08-02 12:41:39 +00:00
bjh21
ad2c12a28d
Bump version numbers of all bootloaders that use loadfile/ELF, to account for
...
my changes to symbol loading. I should probably have done this at the time,
but it's better late than never.
2001-08-02 12:24:05 +00:00
mjl
ab94842af6
Add rnd entropy gathering.
2001-07-26 21:31:45 +00:00
tsubai
1b3871ef0f
Change description of handler-ID == 195.
2001-07-26 11:36:40 +00:00
tsubai
bacce8fb4c
Fix a warning when compiled w/o DDB.
2001-07-26 11:23:37 +00:00
bouyer
21bcee4ec1
Return() if piomode == -1 (i.e. we have no drives), avoid reading an array with
...
a negative offset.
Thanks to Andrew Cagney for pointing this out.
2001-07-25 20:26:33 +00:00
wiz
c5a6be17f4
bcopy -> memcpy, bzero -> memset, bcmp -> memcmp.
...
Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
2001-07-22 11:29:44 +00:00
thorpej
babefc5331
Add BUS_DMA_READ and BUS_DMA_WRITE flags, that hint the back-end
...
at dmamap load time that the mapping will be used for a unidirectional
transfer of the specified direction.
2001-07-19 15:32:10 +00:00
matt
b499a7d558
Add -Wno-main since this is a standalone program.
2001-07-18 05:37:55 +00:00
tsubai
e0cf8bfa8f
Eject PCMCIA card on ohare based models only.
2001-07-17 12:33:45 +00:00
nathanw
dda83b1771
Add the keyboard ID found on the American versions of the PowerBook G4 and
...
iBook (dual USB).
2001-07-12 04:16:58 +00:00
briggs
d0dae0b07e
Allow build with KGDB defined.
2001-07-11 22:11:29 +00:00
abs
01b024cd5b
Standardise TCP_COMPAT_42 as commented out, grouped with other COMPAT options,
...
and with the comment '4.2BSD TCP/IP bug compat. Not recommended'
Add commented out 'TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG'
(All hail amiga and atari which make some attempt to automate the
multiplicity of config files...)
2001-07-08 16:32:12 +00:00
matt
6357fdafe8
Add PM_SR
2001-07-01 21:39:17 +00:00
darcy
ce0ec1e208
Add System V semaphore resource limits to each GENERIC file that has an
...
option for System V semaphores. It appears that there are no overrides
in the code and each file has the following added.
options SYSVSEM # System V semaphores
+#options SEMMNI=10 # number of semaphore identifiers
+#options SEMMNS=60 # number of semaphores in system
+#options SEMUME=10 # max number of undo entries per process
+#options SEMMNU=30 # number of undo structures in system
options SYSVSHM # System V shared memory
If anyone thinks that this is incorrect for any of these files, please
correct it.
Note - the i386 port was not forgotten. It was done separately.
2001-06-30 11:00:31 +00:00
wiz
e18583d6a8
Adapt to linux emul trap change.
2001-06-24 17:38:28 +00:00
matt
a627c75f35
#include <powerpc/spr.h> and SPR_PIR in place of 1023
2001-06-23 02:07:07 +00:00
briggs
e870bf36b9
There is no other support for KGDB in this driver yet, so ifdef out the
...
call to a non-existent (on macppc) zs_check_kgdb() for now.
2001-06-20 02:01:56 +00:00
wiz
3f9984fc90
`existent', not `existant'
2001-06-19 13:42:07 +00:00
simonb
e50bbd9bf9
Add -Wstrict-prototypes.
2001-06-19 13:00:42 +00:00
simonb
d4bcd9c735
Add/change prototypes so that macpcc builds with -Wstrict-prototypes.
2001-06-19 12:02:55 +00:00
tsubai
1614d87d0e
Support the new iBook.
2001-06-17 19:54:47 +00:00
bouyer
17eff1c958
Pass WDC_CAPABILITY_MODE to the wdc core, so that it will set timings
...
on the drive side too.
Deal properly with the case where master and slave don't have the same timings,
and set PIO timings too.
2001-06-15 10:35:26 +00:00
tsubai
f1d3ac74a5
Change comment.
2001-06-12 17:36:55 +00:00
tsubai
cbad4436c2
One more.
2001-06-12 16:32:00 +00:00
tsubai
51a013241c
Make this compile w/o akbd or ukbd.
2001-06-12 16:29:07 +00:00
tsubai
8561123ccf
-Wreturn-type is included in -Wall.
2001-06-10 17:05:11 +00:00
tsubai
7f2d136a9a
Remove options NMBCLUSTERS=1024 -- it's default now.
2001-06-10 15:41:13 +00:00
tsubai
b736ff678e
Use machine/bat.h rather than powerpc/mpc6xx/bat.h.
2001-06-10 15:32:57 +00:00
tsubai
afa0c16167
include powerpc/mpc6xx/bat.h.
2001-06-10 15:24:57 +00:00
tsubai
8b0b4ecd3f
Forgot to commit this; s/offb/ofb/.
2001-06-10 13:56:13 +00:00
tsubai
4911bdc582
Use ofb_softc again.
2001-06-10 11:38:21 +00:00
tsubai
fafb5d4bc3
Make the new pmap optional. Use the old (stable!) pmap by default.
2001-06-10 11:01:26 +00:00
tsubai
27c2892f13
Enable color! call in ofb_putcmap again.
...
Matt, please don't remove codes silently without confirmation.
(At least, leave a log message!)
2001-06-10 10:34:27 +00:00
chs
68e8e6ff9c
make this compile again.
2001-06-08 05:43:00 +00:00
simonb
e5bd00e48d
For ports that wire up pciide in compatibility mode, have
...
them define __HAVE_PCIIDE_MACHDEP_COMPAT_INTR_ESTABLISH
in pci_machdep.h and pciide_map_compat_intr() only calls
pciide_machdep_compat_intr_establish() if that preprocessor
define exists.
Ports that don't need to do this no longer need to supply a
dummy function.
2001-06-08 04:48:54 +00:00
matt
d2f0c68d47
Make macppc compile by default with -Wall -Wmissing-prototype in addition
...
to its currently enabled warnings. For the lack of a better place, most
global function prototype wound up in <machine/autoconf.h> unless there
was a better place for them. ofb_* structs renamed to offb_* to avoid
conflict with ofb_softc in <dev/ofw/openfirm.h>
2001-06-08 00:32:01 +00:00
matt
695e5e7ab5
Changes new pmap, common param.h, vmparam.h, and moved includes.
2001-06-06 17:50:14 +00:00
matt
f294982771
Enable tlp for 21x4x chips.
2001-06-06 17:47:54 +00:00
tsutsui
ad811093a3
Add iha at pci .
2001-06-03 13:46:57 +00:00
chs
821ec03ed9
replace vm_map{,_entry}_t with struct vm_map{,_entry} *.
2001-06-02 18:09:08 +00:00
lukem
d84d2c6c85
add missing #include "opt_kgdb.h"
2001-05-30 15:24:23 +00:00
mrg
67afbd6270
use _KERNEL_OPT
2001-05-30 11:57:16 +00:00
mrg
3783ca5d30
define _KERNEL_OPT as well as _KERNEL. we will use this in the future to
...
get kernel "opt_foo.h" headers, rather than _KERNEL && !_LKM.
2001-05-29 02:20:20 +00:00
wiz
3686c30f46
Add RTC_OFFSET=0 line.
2001-05-27 23:52:41 +00:00
wiz
c4633b8744
Add RTC_OFFSET line (see port-macppc/10265).
2001-05-27 23:39:03 +00:00
wiz
8676d3773e
Honour RTC_OFFSET. Patches from Y. Takizawa <you@nightbreak.org> via
...
SUNAGAWA Keiki in port-macppc/10265. Also addresses port-macppc/10949.
2001-05-27 23:38:12 +00:00
chs
e44e9dec8a
replace vm_page_t with struct vm_page *.
2001-05-26 21:27:02 +00:00
matt
78350f3c60
Add ${AOPTS} to AFLAGS
2001-05-17 23:48:31 +00:00
tsubai
9b368d61a4
Add AirMac frontend.
2001-05-16 10:56:42 +00:00
soren
945b972563
PPC machine type tags haven't been used for a while.
2001-05-03 13:11:24 +00:00
scw
2963ff5c58
Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
...
in each tty driver to indirect through it.
This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
thorpej
cf67ac7122
Per discussion w/ chuck and chuck, restructure the md page stuff
...
to use a structure called "vm_page_md", and use __HAVE_VM_PAGE_MD
and __HAVE_PMAP_PHYSSEG.
2001-05-01 02:19:13 +00:00
thorpej
2b27ac7a99
Add a VM_MDPAGE_MEMBERS macro that defines pmap-specific data for
...
each vm_page structure. Add a VM_MDPAGE_INIT() macro to init this
data when pages are initialized by UVM. These macros are mandatory,
but ports may #define them to nothing if they are not needed/used.
This deprecates struct pmap_physseg. As a transitional measure,
allow a port to #define PMAP_PHYSSEG so that it can continue to
use it until its pmap is converted to use VM_MDPAGE_MEMBERS.
Use all this stuff to eliminate a lot of extra work in the Alpha
pmap module (it's smaller and faster now). Changes to other pmap
modules will follow.
2001-04-29 22:44:31 +00:00
tsubai
75dbde785b
Remove spaces at EOL.
2001-04-26 15:27:05 +00:00
tsubai
8e3cb2354b
Comment out ``printf("spurious interrupt\n")''.
2001-04-26 14:40:19 +00:00
bouyer
937a7a3ed9
Pull up the thorpej_scsipi branch to main branch.
...
This is a completely rewritten scsipi_xfer execution engine, and the
associated changes to HBA drivers. Overview of changes & features:
- All xfers are queued in the mid-layer, rather than doing so in an
ad-hoc fashion in individual adapter drivers.
- Adapter/channel resource management in the mid-layer, avoids even trying
to start running an xfer if the adapter/channel doesn't have the resources.
- Better communication between the mid-layer and the adapters.
- Asynchronous event notification mechanism from adapter to mid-layer and
peripherals.
- Better peripheral queue management: freeze/thaw, sorted requeueing during
recovery, etc.
- Clean separation of peripherals, adapters, and adapter channels (no more
scsipi_link).
- Kernel thread for each scsipi_channel makes error recovery much easier
(no more dealing with interrupt context when recovering from an error).
- Mid-layer support for tagged queueing: commands can have the tag type
set explicitly, tag IDs are allocated in the mid-layer (thus eliminating
the need to use buggy tag ID allocation schemes in many adapter drivers).
- support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command
will be requeued, or a REQUEST SENSE will be sent as appropriate.
Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
2001-04-25 17:53:04 +00:00
tsubai
af50ac4b06
Make sure free rx buffers have GMAC_OWN set.
2001-04-24 11:04:11 +00:00
thorpej
1c3a62e066
Sprinkle pmap_update() calls after calls to:
...
- pmap_enter()
- pmap_remove()
- pmap_protect()
- pmap_kenter_pa()
- pmap_kremove()
as described in pmap(9).
These calls are relatively conservative. It may be possible to
optimize these a little more.
2001-04-24 04:30:50 +00:00
matt
2297e41241
After finishing with the received descriptor, make sure to "eieio" to make
...
sure the OWN gets back to the gmac in the proper order. This reduces (and
maybe even fixes) the gm0 out-of-order problem.
2001-04-20 01:18:47 +00:00
kleink
f06533a1ee
Add definitions of C99 integer format conversion macros.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 17:13:04 +00:00
kleink
739cb75837
Add definitions of C99 specified-width integer type limits.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-15 15:29:02 +00:00
kleink
cdcf9f46c5
Add definitions of C99 integer constant macros.
...
Tidy Makefiles up a little.
2001-04-14 22:46:19 +00:00
kleink
a7c20e5788
Add definitions of C99 integer constant macros.
2001-04-14 22:38:33 +00:00
kleink
7affdab52e
Add definitions of C99 minimum-width and greatest-width integer types.
...
XXX Fastest minimum-width integer types haven't been decided upon yet.
2001-04-14 12:19:49 +00:00
thorpej
bf2dcec4f5
Remove the use of splimp() from the NetBSD kernel. splnet()
...
and only splnet() is allowed for the protection of data structures
used by network devices.
2001-04-13 23:29:55 +00:00
tsubai
2a7597f49e
Make this compile w/o ukbd.
2001-04-08 08:53:31 +00:00
tsubai
b672929b7f
Support uni-north based models. (XXX not complete)
2001-04-05 19:55:01 +00:00
tsubai
a9e0aabf3f
Correct input volume settings.
2001-04-05 14:21:31 +00:00
tsubai
b01df63489
Assume USB keyboard when `usb-kbd-ihandles is not found.
2001-04-05 10:10:26 +00:00
manu
4678df7c23
Cosmetic change
2001-04-04 17:08:07 +00:00
manu
15fbc5943f
Added a comented out COMPAT_LINUX option in GENERIC kernels of PowerPC ports
2001-04-03 19:50:43 +00:00
tsubai
85dc2162fb
Correct vBufA offset. (currenly not used)
2001-04-01 15:14:36 +00:00
tsubai
42fc57ff46
Remove gpio. It's not a time to use separate gpio node yet.
2001-04-01 10:42:34 +00:00
tsubai
158796407f
Adjust timing for pmu99. Internal keyboard of recent PowerBooks
...
should work now.
2001-04-01 10:40:45 +00:00
tsubai
6386dedebe
When attached, do not change brightness if the value is zero.
2001-03-29 17:44:50 +00:00
petrov
1c9cc1b092
use NCR_F_DMASELECT instead of ncr53c9x_dmaselect
2001-03-29 03:30:19 +00:00
tsubai
95a27e3b60
Remove devices which don't exist on floppy based models.
...
Now boot floppy fits 1.4MB again.
2001-03-23 09:30:49 +00:00
tsubai
ce8902b7fe
Merge my MP tree. At this point, Daystar dual 604 card (i.e. Power Macintosh
...
9500/180MP and 9600/200MP) runs at least into single-user mode, possibly
multi-user mode (not stable yet).
2001-03-22 04:11:46 +00:00
lukem
723cd818d8
move duplicate definitions for:
...
pc, lpt, joy, ocis, apm, satlink, i4bctl, i4brbch, i4btel, i4btrc, i4b
from the port-specific arch/*/*/conf.c files into sys/conf.h
2001-03-21 22:25:52 +00:00
soren
912c115675
s/vm_page_alloc_memory/uvm_pglistalloc/ in panic message.
2001-03-21 18:40:28 +00:00
tsubai
577fa61b83
Enable interrupts before calling interrupt handler(s).
2001-03-21 11:38:39 +00:00
tsubai
dc7eafe744
Redo previous. Instead of defining another type, mask upper bits of pvr.
2001-03-20 15:52:07 +00:00
tsubai
e679c63257
Accept 8000Hz (XXX).
2001-03-15 19:55:16 +00:00
tsubai
5eab0287fb
Use write-through caching for video ram. (Disabled by default, for now.)
2001-03-15 19:48:04 +00:00
tsubai
4382a59d64
Add ulinear16 support.
...
Return EINVAL if specified rate is not available.
2001-03-15 19:42:42 +00:00
tsubai
123c25cc93
Remove PAGER_MAP_SIZE definition -- use default value. Instead, decrease
...
VM_MAX_KERNEL_BUF.
2001-03-15 16:06:59 +00:00
chs
ac3bc537bd
eliminate the KERN_* error codes in favor of the traditional E* codes.
...
the mapping is:
KERN_SUCCESS 0
KERN_INVALID_ADDRESS EFAULT
KERN_PROTECTION_FAILURE EACCES
KERN_NO_SPACE ENOMEM
KERN_INVALID_ARGUMENT EINVAL
KERN_FAILURE various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE ENOMEM
KERN_NOT_RECEIVER <unused>
KERN_NO_ACCESS <unused>
KERN_PAGES_LOCKED <unused>
2001-03-15 06:10:32 +00:00
tsubai
9f1a6e07a4
Round up block size to at least NBPG bytes.
2001-03-12 15:41:52 +00:00
thorpej
2c4c690f14
Add the BUS_DMA_STREAMING flag.
2001-03-07 22:42:16 +00:00
tsubai
5e917b9c4d
Add another CPU ID for G4; PowerBook G4 has different PVR value.
2001-03-07 12:44:05 +00:00
tsubai
973904ff17
Include trap_subr_mp.S if MULTIPROCESSOR is defined.
2001-03-07 08:12:55 +00:00
tsubai
0e3e6118a9
Add awi* at pcmcia.
2001-03-05 11:31:14 +00:00
tsubai
22961fea9b
Enable CD and microphone sound input on paddington based systems.
2001-03-02 20:36:00 +00:00
tsubai
129bc9a446
Sync cdevsw and chrtoblktbl.
2001-02-28 19:14:30 +00:00
tsubai
86f265568f
Back out previous change. It was harmful on my PowerBook G3.
2001-02-28 18:49:29 +00:00
matt
e2bb0a8f78
Recognize NETBSD & NETBSD/MACPPC parition types, default HFS to parition d.
...
Exclude FWDRIVER.
2001-02-28 03:02:29 +00:00
matt
a1f5b79d02
Add gpio hook.
2001-02-27 17:49:54 +00:00
matt
702b27ec2c
Back out change to print irq.
2001-02-27 07:34:15 +00:00
matt
2184b08f72
Enable a fix so that PowerBook(FireWire) keyboards work. This
...
should also work on iBooks and PowerBook(WallStreet). And if
we're really lucky, on the new G4 laptops.
2001-02-27 07:33:17 +00:00
matt
f209f0ea1a
Add Apple_FWDRIVER.
2001-02-27 06:16:06 +00:00
matt
c09a88dca3
Be a bit more defensive.
2001-02-27 05:16:33 +00:00
matt
22d63778fc
Add a gpio device to handle the gpio device & extint-gpio1
...
interrupt. (think ibook/powerbook)
2001-02-27 05:15:03 +00:00
matt
25b977c685
print out irq on unconf devices.
2001-02-27 03:47:02 +00:00
wiz
0a4ef18ab8
add handling for the input channel selection/volume (no recording yet,
...
just the mixer interface)
2001-02-26 21:07:51 +00:00
matt
af212d3fda
Use common switch / setfault / trampoline code. (except amigappc because
...
it doesn't use trap_subr.S either).
2001-02-25 20:34:24 +00:00
matt
e7811ad9b6
Move cpu_sysct and dump{mag,lo,siz} & cpu_dumpconf to powerpc_machdep.c.
...
dumpsys is still port-specific for now. XXX dumpsys is still a stub
on all powerpc ports.
2001-02-24 22:39:16 +00:00
matt
45f666cb9d
Remove setregs since it now lives in powerpc/powerpc/powerpc_machdep.c
2001-02-24 04:35:33 +00:00
matt
e7db94d39f
if we panic to a bad/illegal irq, at include the invalid irq value in
...
the panic message.
2001-02-23 23:07:15 +00:00
cgd
8a986b2e96
convert to use getprogname()
2001-02-19 22:48:57 +00:00
matt
ab4ef9dcf6
Add devsw entries for "ld" (logical disks).
2001-02-18 04:55:37 +00:00
briggs
2f624f78d6
Share a single pio.h instead of having 4 nearly-identical copies.
2001-02-05 19:33:54 +00:00
briggs
e96035c57c
Tsubai has convinced me that openpic_init() should remain machine-dependant
...
as the details might differ between archs, and passing the various options
leads to some clutter.
2001-02-05 19:22:23 +00:00
briggs
863805b4d8
Correct previous. Call openpic_init() correctly.
2001-02-04 17:46:33 +00:00
briggs
e560b86e0b
Adapt to new openpic_init() parameters.
2001-02-04 17:36:08 +00:00
briggs
0ce1220246
For now, all macppc will get OpenPIC
2001-02-04 17:33:42 +00:00
briggs
9150a401ba
No longer needed
2001-02-02 06:12:34 +00:00
briggs
044caccfff
Split OpenPIC support into powerpc so ports only need minimal custom
...
configuration. openpic_init() now takes a single argument that is the
base of the OpenPIC register space.
2001-02-02 06:11:52 +00:00
tsubai
d0a3070c40
Generate key press event and key release event when capslock is pressed.
...
Now capslock key works correctly on X11.
2001-01-25 14:08:55 +00:00
wiz
ec35b8d060
Make output selection work -- you can use lineout now instead of the
...
internal loudspeakers.
2001-01-25 13:39:22 +00:00
jmc
c97a56563e
Turn on NFS_V2_ONLY as the kernel has gotten too big for the ramdisk otherwise.
2001-01-24 06:10:09 +00:00
manu
3c98a504b9
Added previously created files for powerpc Linux compatibility to the kernel
...
config system
2001-01-19 01:51:16 +00:00
tv
e58532a4bf
No-op commit to force update to a non-"-kk" revision.
2001-01-18 17:47:58 +00:00
fvdl
c7f1462f3e
Add machdep file for procfs. Currently only used for linux-style
...
/proc/cpuinfo (only active when procfs is mounted with -o linux).
For ports other than the i386 this currently produces an empty
string.
2001-01-17 00:07:18 +00:00
augustss
46130fb7e5
Add uyap.
2001-01-16 03:38:22 +00:00
thorpej
d74e432ed3
Make softclock a generic soft interrupt of the API is available,
...
adding the requisite void * argument to softclock().
2001-01-15 20:19:50 +00:00
martin
a261276f16
The i4b raw b-channel devices actually do have an ioctl routine,
...
so better add this to the cdevsw entry.
Noted by Bruno Achauer.
2001-01-14 11:17:28 +00:00
thorpej
d85a75f583
Make sure everybody has an splvm() and equate it with splimp() (splimp()
...
is the historical name for this interrupt level, and the historical name
is going to go away in the near future).
2001-01-14 02:00:37 +00:00
martin
5d0c67c603
When adding isdn devices I forgot to check chrtoblktbl.
...
Fix this know for the affected archs.
2001-01-09 20:51:04 +00:00
tsubai
3efddcd88e
Configure PCI_INTERRUPT_LINE on the other side of the pci-bridge on OF3 too.
2001-01-09 08:04:53 +00:00
martin
f53c899649
Add isdn devices to all archs that seem to support at least one of the
...
necessary busses. Sync comments with reality for archs that already had
the devices.
2001-01-08 21:46:33 +00:00
nathanw
5af86c93fb
The "#auvia" line was removed from this config; remove the "#audio* at
...
auvia?" line as well.
2001-01-08 17:35:29 +00:00
tsubai
0374c83129
Fix lost-software-interrupt bug.
2001-01-04 15:01:25 +00:00
tsubai
ad6af0a61b
Make lasttb and tickspending per-CPU.
2001-01-01 05:28:54 +00:00
tsubai
b3982b810e
Allocate intstk and spillstk for cpu0.
2001-01-01 05:23:17 +00:00
tsubai
61096678a3
Forgot to commit this...
2001-01-01 05:17:15 +00:00
tsubai
6c4981f735
Switch to the idle stack before releasing the sched_lock (rev 1.31 was
...
wrong).
2001-01-01 05:16:12 +00:00
tsubai
9a7bf182cd
MP support in external interrupt handler.
2001-01-01 05:01:11 +00:00
tsubai
26914e2bcf
Make want_resched and astpending per-CPU.
...
Add some per-CPU variables to cpu_info.
2001-01-01 04:33:39 +00:00
sommerfeld
851de295eb
Change pci_intr_map to get interrupt source information from a "struct
...
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".
This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.
Tested on alpha and i386; welcome to 1.5Q
2000-12-28 22:59:06 +00:00
tsubai
3102ae2c25
Work around of "trap type 700 at ff8099b8".
...
It seems to work for me but I'm not sure...
2000-12-25 02:15:52 +00:00
wiz
7ae9423d3b
Honour SCSI command timeout -- fixes problems with SCSI commands that take
...
longer than 10s and were falling into a timeout, e.g. fixating.
2000-12-24 02:42:04 +00:00
tsubai
8ba01dd213
Fix bus_space_write_multi_N.
...
(From der Mouse <mouse@Rodents.Montreal.QC.CA>)
2000-12-21 23:17:32 +00:00
tsutsui
6018d57cfa
Add tlp at pci.
...
"options TLP_MATCH_21?4?" are still commented out.
2000-12-21 13:54:09 +00:00
tsutsui
bddc90bbc3
Add atapibus at pciide.
2000-12-20 12:05:40 +00:00
matt
a0319e43fd
Add pciide
2000-12-20 00:12:19 +00:00
bouyer
c71f40d166
Add pseudo-device vlan
2000-12-19 10:42:02 +00:00
tsubai
a255931f5c
Remove unnecessary casts.
2000-12-19 03:13:40 +00:00
tsubai
438b1e68e0
Add support for Kensington Turbo Mouse.
2000-12-19 02:59:23 +00:00
tsubai
0f4768af30
Sync with mac68k.
2000-12-19 02:50:11 +00:00
tsubai
9812c28653
Clean up unused variables.
2000-12-17 23:24:25 +00:00
tsubai
600a78f5a5
Move variable tickspending to clock.c; it's used in only clock.c.
2000-12-17 23:16:22 +00:00
tsubai
00940e9045
Switch to the idle stack in the idle loop.
2000-12-17 22:57:35 +00:00
jdolecek
cacec11253
delete obsolete comment
2000-12-17 15:52:39 +00:00
mycroft
3418812d3c
Partial syscall cleanup, as per other ports.
2000-12-14 10:33:42 +00:00
mjacob
af2807f9f7
Finally fix this driver to be sensible about the ENDIAN dance. It's not
...
quite simply a question of the Qlogic being little endian and having
to have stuff swapped on big endian machines- it also has to do with the
fact that the SBus and PCI DMA layouts are wierd with respect to this.
At any rate, now finally fixed- works on Mac G4, tested it on a SS10
for sparc, checked on alpha to see if I've broken anything, and as
soon as I get another spare afternoon I'll finally install a sparc64
version which should just work (as it'll be like the Mac).
2000-12-09 08:06:31 +00:00
mycroft
73e35a46eb
Increase all of the limits.
2000-12-08 21:51:35 +00:00
tsubai
1b4a9cb335
Move INTSTK and SPILLSTK definitions to locore.[Ss] to allow allocation of
...
them in early startup.
2000-12-04 17:05:50 +00:00
kei
4389b3cbed
fix a typo in the printf message.
2000-12-01 18:09:01 +00:00
kei
b134a87a76
fix a typo in comment. remove a whitespace at the end of line.
2000-12-01 18:07:11 +00:00
tsubai
e4bfefe7bd
Make spl functions no-inline. This saves size and even it runs faster on
...
some systems.
2000-11-29 17:55:52 +00:00
tsubai
0562490a63
Change base address to 0x800000.
2000-11-27 14:41:47 +00:00
tsubai
e5c94432d1
Reduce PAGER_MAP_SIZE to 4MB.
2000-11-27 11:37:33 +00:00
soren
66864e1f05
Removed increased BUFCACHE/BUFPAGES.
2000-11-27 08:55:41 +00:00
tsubai
2fb7179aaf
Add KERNEL_LOCK (et al.) to run MULTIPROCESSOR kernel on a single cpu system.
2000-11-25 15:49:43 +00:00
chs
c62d17a551
rationalize the use of b_flags for geteblk() buffers.
...
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.
2000-11-20 08:24:08 +00:00
matt
9dd26cf7c4
It's hfs.c, not hfs. Add -I${.CURDIR} for objdirs. XXX hfs.c should
...
be integrated into libsa.
2000-11-16 07:36:04 +00:00
thorpej
d96bb89daf
Use <powerpc/powerpc/trap_subr.S>
2000-11-16 05:34:03 +00:00
thorpej
b84f740be0
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
2000-11-15 01:02:11 +00:00
matt
dbe8de94a8
back out my change powerpc/conf/files.ofw. Enable the inclusion of
...
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c
2000-11-15 00:39:31 +00:00
matt
8ba706bdfd
Add rnd & openfirm to POWERMAC
...
Add openfirm and commmented-out firewire stuff to GENERIC
2000-11-14 22:33:24 +00:00
matt
ca735c9a04
Add initial support dual-CPU G4. At least finds 2nd CPU.
2000-11-14 21:55:25 +00:00
matt
6e88c0d0d6
Add a openfirm entry to conf.c
2000-11-14 21:46:09 +00:00
augustss
eb9736c09a
Add uscanner.
2000-11-14 19:52:04 +00:00
tsubai
e3ae93dfd4
Add hfs support. Currently this layer simply throw the request to the OF
...
(and the OF recognizes HFS).
2000-11-14 11:25:34 +00:00
hannken
0ba0592864
Pull in dev/i2o/files.i2o.
2000-11-10 17:09:15 +00:00
tsubai
eef7148644
Enable HID0_BTIC on 750 and 7400.
2000-11-09 11:58:09 +00:00
tsubai
a88f368787
defopt L2CR_CONFIG.
2000-11-08 17:53:46 +00:00
wrstuden
10c4684193
Use wdc_print_modes() so that we get to see what DMA modes
...
are used with a drive.
2000-11-08 17:50:44 +00:00
matt
4feeea4377
Reduce maxusers to 12 (this is a single user kernel after all).
...
Remove COMPAT_13 since it's not needed.
2000-11-07 17:37:07 +00:00
matt
c62b76ce87
Switch from the old yucky ncr to the new good siop driver for 53c8xx.
2000-11-07 17:01:33 +00:00
tsubai
532d1c33c2
Enter ddb after ddb_init() if -d is specified.
2000-11-06 12:35:21 +00:00
tsubai
7bfead48b0
Rearrange console selection code.
...
Now usb keyboard is preferred to adb.
2000-11-06 12:33:07 +00:00
matt
5a55a6ac60
Add files.ieee1394
2000-11-05 23:19:41 +00:00
wrstuden
029bdd3185
Adjust to change in tty line discipline handling.
2000-11-03 18:50:49 +00:00
tsubai
3d213115f4
Don't match if nintr > 12 (more than 3 cells).
2000-11-03 12:26:06 +00:00
tsubai
bcb05a2f55
Get 6 interrupt cells from OF.
2000-11-03 12:20:55 +00:00
tsubai
2fe4478f19
Don't assume 12x22 font.
2000-11-02 14:25:51 +00:00
eeh
8c3f6a0d10
Adapt to new line discipline scheme.
2000-11-02 00:37:56 +00:00
tsubai
08e43d95ca
Don't set M_HASFCS flag twice.
2000-11-01 20:21:58 +00:00
mycroft
204e210aef
Enable DDB history by default.
2000-11-01 06:57:56 +00:00
mycroft
94abfa5119
Actually attach the audio device...
2000-11-01 05:28:09 +00:00
mycroft
e964414bc8
(Oops. There's no other audio support in this config.)
2000-11-01 04:34:41 +00:00
mycroft
105e2e4e4d
Add awacs.
2000-11-01 04:31:20 +00:00
tsubai
b4b571ccb9
Match "chrp,mesh0".
2000-10-31 16:57:07 +00:00
tsutsui
51d748392f
Switch to sys/dev/md_root.c. Tested on an INSTALL kernel.
2000-10-29 01:39:19 +00:00
tsubai
784da8d158
Use "doze" power-saving mode on 750 and 7400.
2000-10-28 21:57:43 +00:00
garbled
b7c07855f6
make -> ${MAKE}
2000-10-28 15:41:25 +00:00
tsubai
251bc81879
Change ofwboot entry address to 0x600000.
2000-10-24 12:18:33 +00:00
tsubai
756f954ef1
Fix Conner CFP1080 problem (pr 7612) and add debugging messages.
2000-10-23 21:04:27 +00:00
matt
b30ca78c9b
Packets have the FCS append so set M_HASFCS.
2000-10-18 05:43:13 +00:00
tsubai
03251ccf07
Pass correct packet length to the upper layer.
2000-10-17 15:57:51 +00:00
tsubai
5d6a22ffea
Use VNODE_OP_NOINLINE.
2000-10-14 19:14:06 +00:00
wrstuden
07a9408ae6
Move ofwboot to 600000 hex. Should make loading better (less likely to
...
run into OF internals).
2000-10-13 00:19:30 +00:00
abs
2824f4906d
Ensure all INSTALL* kernels have two ptys, and a note explaining why:
...
pseudo-device pty 2 # pseudo-terminals (Sysinst needs two)
(Some installers may not be using sysinst, in which case this just reduces
the number of ptys from 16 that are not used to 2 that are not used)
For i386 conf files, no change other than comments.
2000-10-02 18:43:34 +00:00
thorpej
7ca3fb9ef0
Move the check for "promisc + unicast + not for us" into ether_input(),
...
and change Ethernet drivers to always pass all received frames to
ether_input() (with a few exceptions, which are documented in the
code).
2000-10-01 23:32:39 +00:00
tsubai
442b9b5df2
Get the correct OF node of the screen because PowerBooks have two screens
...
in one PCI device.
2000-10-01 19:08:30 +00:00
tsutsui
cdb3d9df80
Add sip* at pci.
2000-09-29 14:45:59 +00:00
tsubai
e256cfb9ec
Fix a bug that prevents the kernel from detecting the root device.
2000-09-29 10:14:20 +00:00
abs
3ef92f0bdb
Use "options<SPACE><TAB>" not "options<TAB>" - noted by simonb.
...
Move VNODE_OP_NOINLINE and NFS_V2_ONLY into '# Filesystem options' section.
Consistently label '# Filesystem options' and '#File systems' sections.
2000-09-25 13:54:50 +00:00
abs
ccf1c822a6
Ensure all INSTALL config files have (at least) COPTS="-Os", cincluding bebox
...
based on it working already for macppc.
Also add commented out:
#options VNODE_OP_NOINLINE # Don't inline vnode op calls
#options NFS_V2_ONLY # Exclude NFS3 and NQNFS code
as suggestions for additional savings
2000-09-25 11:46:37 +00:00
tsubai
5836de14e4
Fix a bug introduced in BOOT_FLAG change.
2000-09-24 16:16:37 +00:00
jdolecek
b1f94e26ab
don't specify number of ptys if >= 16 (current default initial number)
...
pty comments: normalize and g/c what is no longer relevant
2000-09-24 15:59:26 +00:00
jdolecek
49c105ffdb
add new macro BOOT_FLAG() (defined in <sys/boot_flag.h>) - this
...
maps standard boot flags to corresponding RB_* values
use BOOT_FLAG() in port's MD code as appropriate
as discussed on tech-kern, add new boot flags -v, -q for booting
verbosely or quietly, and corresponding AB_VERBOSE/AB_QUIET
boot flags; also add FreeBSD-compatible bootverbose macro and
NetBSD-specific bootquiet macro
for hpcmips, use new bootverbose instead of it's own hpcmips_verbose
Tested on i386, and to limited extend (compile of affected files) also for
mvme68k, hp300, luna68k, sun3.
2000-09-24 12:32:31 +00:00
augustss
e9a2baa2ff
Grab a major # for USB scanners.
2000-09-23 04:30:08 +00:00
thorpej
72a24b4eae
Add an align argument to uvm_map() and some callers of that
...
routine. Works similarly fto pmap_prefer(), but allows callers
to specify a minimum power-of-two alignment of the region.
How we ever got along without this for so long is beyond me.
2000-09-13 15:00:15 +00:00
tsubai
a0cf020afb
Configure L2 cache if it is not enabled by the firmware.
2000-09-12 14:47:38 +00:00
tsubai
dfcd3bca08
On G3 and G4, display short message if L2 cache is not enabled.
2000-09-05 15:29:28 +00:00
tsubai
2e72bb2b72
Add fr key layout. (From Manuel Bouyer, modified by me)
2000-09-01 16:00:38 +00:00
tsubai
f671e87235
Add an argument to need_resched macro.
2000-08-28 11:52:59 +00:00
tsubai
077c9ca312
Enable hash filter mode.
2000-08-28 11:27:44 +00:00
tsubai
308d7eb3e4
Add (experimental) awacs audio driver. Output (play) only.
2000-08-25 12:44:42 +00:00
wrstuden
4678e2bb87
Correctly spell DRIVER. Noted by Tsubai. :-)
2000-08-23 19:15:25 +00:00
tsubai
5558e41363
New PowerBook (firewire) seems to use edge-triggered interrupt.
...
XXX cannot hot-plug yet
2000-08-23 12:18:17 +00:00
thorpej
58e7a6954b
Add spllock(). See spl(9) for details.
2000-08-22 19:46:26 +00:00
tsubai
365ec2aa42
Scheduler locking changes.
2000-08-21 18:46:03 +00:00
thorpej
23a7f255d4
Make sure we provide splsched() as described in spl(9).
2000-08-21 02:06:31 +00:00
tsubai
31ec486214
Correct asm parameter to avoid gcc uninitialized warning.
2000-08-20 07:48:45 +00:00
tsubai
1267826d5d
Increase stack size.
2000-08-20 07:04:59 +00:00
tsubai
58aaeaae7f
In decr_intr(), update lasttb only when clock interrupt is not masked.
2000-08-20 07:02:41 +00:00
tsubai
d832bf8e95
Add "type" argument to openpic_enable_irq().
2000-08-20 06:56:42 +00:00
wrstuden
17c0d4d853
Add some new partition types, and flags. Have the Apple Partition Map
...
code ignore the new partition types, and look for the new "USR" partition
flag.
From SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp> with slight changes by me.
Closes PR port-macppc/10046
2000-08-18 22:40:28 +00:00
itojun
85dda25e94
move "options PULLDOWN_TEST" into sys/sys/mbuf.h (in #ifdef _KERNEL),
...
as it is no wthe default setting for everyone.
the reason we still use the name "PULLDOWN_TEST" while it is now default:
kame code sharing.
2000-08-13 01:31:15 +00:00
tsubai
eef346a5ec
Don't try to change subordinate bus number if pchb != grackle (for now).
2000-08-02 09:02:46 +00:00
tsubai
43b5c0039c
Enable rnd.
2000-08-01 08:23:37 +00:00
tsubai
5f1e746912
Remove duplicated entry 22 in chrtoblk table.
...
Pointed out by Greg Kritsch on port-macppc mailing list.
2000-07-30 07:17:27 +00:00
tsubai
46ab3e89fb
Use libsa alloc().
2000-07-25 06:26:18 +00:00
tsubai
dd54c272e5
Add ofwboot.{mrg,xcf} to CLEANFILES.
2000-07-25 06:22:05 +00:00
tsubai
8dc7633036
Make this compile again.
2000-07-25 06:18:23 +00:00
tsubai
13f68a994d
Enable console in initppc().
2000-07-25 05:44:27 +00:00
tsubai
7cf89e2181
Allocate temporary buffer to copy OF page table dynamically
...
rather than static variable.
2000-07-25 05:41:30 +00:00
wrstuden
e651decb55
We don't need to include the # VIA VT82C686A integrated AC'97 Audio as it
...
is integrated into the Southbridge on a number of i386 motherboards - we
won't be seeing that in a mac. :-)
2000-07-25 02:33:30 +00:00
wrstuden
a6d6bce652
Add a bunch of pci audio drivers. Most are commented out as they haven't
...
been tested on macppc. But I tested the eap for playback and it's fine.
2000-07-25 01:39:22 +00:00
tsubai
a943e81da4
Delete kernfs.
2000-07-24 10:04:10 +00:00
jdolecek
20933708ec
switch to sys/conf/newvers_stand.sh for generation of version file
...
slighly adjust the Makefile WRT vers.c and SRCS & CLEANFILES
2000-07-21 21:42:25 +00:00
wrstuden
0eb897823b
There is no music device - g.c. its cdev_decl.
2000-07-17 16:57:19 +00:00
tsubai
500013914e
Make timebase frequency value adjustable.
2000-07-14 05:53:31 +00:00
tsubai
fba6fe287b
* Redo previous; set PIR on 604 and 7400 only.
...
* printf clean-up.
2000-07-08 07:23:17 +00:00
tsubai
446c144ae3
Set PIR only if MULTIPROCESSOR is defined.
2000-07-07 13:22:06 +00:00
tsubai
059d5818cf
include "opt_multiprocessor.h".
2000-07-06 23:27:29 +00:00