| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
You've served us well, good friend, but now it's time to rest.
ok deraadt
|
| |
|
|
|
|
| |
ok mpi@ claudio@
|
|
|
|
| |
Feedback millert@ kettenis@
|
|
|
|
| |
Started by diff from Mical Mazurek.
|
|
|
|
| |
Compile test and ok tobiasu@
|
| |
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
| |
drivers still set IFF_NOTRAILERS while others do not. Remove all usage of
the flag from the drivers which in ancient times used it (and the modern
drivers which blindly copied it from those drivers of yore).
suggested by guenther. ok mpi
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
there are two things shared between the network stack and drivers
in the send path: the send queue and the IFF_OACTIVE flag. the send
queue is now protected by a mutex. this diff makes the oactive
functionality mpsafe too.
IFF_OACTIVE is part of if_flags. there are two problems with that.
firstly, if_flags is a short and we dont have any MI atomic operations
to manipulate a short. secondly, while we could make the IFF_OACTIVE
operates mpsafe, all changes to other flags would have to be made
safe at the same time, otherwise a read-modify-write cycle on their
updates could clobber the oactive change.
instead, this moves the oactive mark into struct ifqueue and provides
an API for changing it. there's ifq_set_oactive, ifq_clr_oactive,
and ifq_is_oactive. these are modelled on ifsq_set_oactive,
ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd.
this diff includes changes to all the drivers manipulating IFF_OACTIVE
to now use the ifsq_{set,clr_is}_oactive API too.
ok kettenis@ mpi@ jmatthew@ deraadt@
|
| |
|
| |
|
|
|
|
|
| |
Now that "struct bpf_d" depends on <sys/srp.h> this is one of the offender
for removing the header from <sys/param.h>
|
|
|
|
| |
ok mpi@
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and
grows struct ifmediareq.
Old ifconfig and dhclient binaries can still assign addresses, however
the 'media' subcommand stops working. Recompiling ifconfig and dhclient
with new headers before a reboot should not be necessary unless in very
special circumstances where non-default media settings must be used to
get link and console access is not available.
There may be some MD fallout but that will be cleared up later.
ok deraadt miod
with help and suggestions from several sharks attending l2k15
|
|
|
|
| |
initializing variables before they get used.
|
| |
|
|
|
|
| |
ok miod@
|
|
|
|
| |
ok bluhm@, claudio@, dlg@
|
|
|
|
|
|
|
| |
Note that pseudo-drivers not using if_input() are not affected by this
conversion.
ok mikeb@, kettenis@, claudio@, dlg@
|
| |
|
|
|
|
|
|
| |
if_input(). Based upon an initial diff from mpi@, and then painfully made
STRICT_ALIGNMENT-compliant. Tested on 4/260.
ok mpi@
|
|
|
|
| |
not available to programs anyway.
|
|
|
|
|
|
|
|
|
| |
the kernel_lock), as we already do better conversions in
user-mode. Yet, no need for every single driver to fiddle with the
conversion code as they are done transparently by common MI code. With
help from armani and miod, support from mpi
ok armani@
|
|
|
|
|
|
|
|
|
|
|
|
| |
there's no need to do it in m_devget(9).
Stop passing an ``ifp'' will help for upcoming interface pointer -> index
conversion.
While here remove unused ``ifp'' argument from m_clget(9) and kill two
birds^W layer violations in one commit.
ok henning@
|
|
|
|
| |
ok dlg@
|
|
|
|
|
|
| |
might be overwritten by pseudo-drivers.
ok dlg@, henning@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
behind a sun4m iommu.
Move the existing dvma routines from vm_machdep.c to this new dvma.c; this
allows for a few declarations to be removed from public headers.
Extend the device attachment arguments (struct confargs) to pass a
bus_dma_tag_t. mainbus receives the dvma bus_dma_tag_t, and devices pass the
tag unchanged to their children, except for iommu(4) which replaces it with
its own.
Change the few sun4m-only drivers to pick the bus_dma_tag_t from confargs
rather than assume iommu; this allows qlw(4) to attach and work on sun4c.
ok kettenis@
|
| |
|
|
|
|
| |
Tested by miod@, thanks!
|
| |
|
|
|
|
| |
actual card name we're attaching.
|
| |
|
| |
|
|
|
|
|
| |
`ranges' property, i.e. sun4c, so that child devices can attach correctly.
This makes be(4) work on sun4c.
|
|
|
|
|
|
|
|
|
|
|
| |
reachable with the default slot aperture (such as hme(4) devices, which have
their registers at offset 0x08c00000 from the slot base), force the attachment
of the device to fail.
While hme would fail early due to being unable to talk on the mdio bus, hme+esp
boards would have the esp part of the board get nuts and would spin during
autoconf. Of course, you are not supposed to use such boards on sun4c, because
(as mentioned above) they can't run without an iommu.
|
|
|
|
| |
number of spurious zs interrupts I am seeing on sun4c, albeit not completely.
|
|
|
|
|
| |
preparation for systems which do not have console on a zs(4) device.
No functional change yet.
|
| |
|
|
|
|
|
|
|
| |
- rename uiomove() to uiomovei() and update all its users.
- introduce uiomove(), which is similar to uiomovei() but with a size_t.
- rewrite uiomovei() as an uiomove() wrapper.
ok kettenis@
|
|
|
|
|
|
|
|
|
| |
bufq.
guenther pointed out this is one of the last things using the compat
in struct buf that we still have from the disksort days. not anymore.
ok miod@ guenther@
|
| |
|
|
|
|
| |
and if so, force soft carrier mode.
|
|
|
|
|
| |
now that the disklabel code will reduce MAXDISKSIZE to the real size if a Sun
label is found.
|
|
|
|
|
|
|
|
|
|
|
| |
because it teaches us the drive geometry, but from then on there is no reason
not to implement disklabel spoof support and a proper DIOCGPDINFO ioctl.
As a result, this makes disklabel -A now work on SMD disks.
The drawback of this, is that, since native labels do not have a pcylinders
value, the code will now always assume pcylinders == ncylinders + acylinders.
(this ought to be the case by default for labels produced by SunOS format(8).)
|