Age | Commit message (Collapse) | Author |
|
|
|
ok patrick@ kettenis@
|
|
|
|
attach if we are running in legacy mode.
ok jsg@
|
|
topology based on device tree information. Introduce a common attach
args structure to be used for all fdt-capable bus devices.
ok jsg@ kettenis@
|
|
|
|
capability
ok kettenis@
|
|
controller. Use this to switch SD cards to a 4-bit bus if they support it.
ok deraadt@, jsg@
|
|
|
|
The unused port, if enabled, fills up and triggers flow
control, blocking transmit and causing device timeouts.
Also enable interrupt pacing to limit interrupts at 2K/s.
Reported and fix tested by Anthony Eden.
ok dlg@
|
|
|
|
This matches FreeBSD and makes things a bit more consistent.
Discussed with Patrick.
|
|
are not quite right. At least I can't find them in any of the MMC and
SD card documentation I can find on the interwebs. Instead there is a
single "low voltage bit" that indicates support for the 1.65-1.95V or
1.70-1.95V range depending on the document you're reading. Go with the
1.65-1.95V range as that is what Linux does.
Necessary (but not sufficient) to make the eMMC on the ASUS X205TA work.
ok jsg@ (who did the armv7 bits)
|
|
triggered by flodding the interface. Also drop received packets
that span multiple buffers (which should not happen).
Tested on Beagle Bone Black by jsg@
ok bmercer@, djm@, jsg@
|
|
|
|
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@
|
|
IFQ_POLL(&ifp->if_snd, m);
if (m == NULL)
return;
IFQ_DEQUEUE(&ifp->if_snd, m);
is the same as
IFQ_DEQUEUE(&ifp->if_snd, m);
if (m == NULL)
return;
ok mpi@
|
|
|
|
|
|
Note that pseudo-drivers not using if_input() are not affected by this
conversion.
ok mikeb@, kettenis@, claudio@, dlg@
|
|
|
|
|
|
multiple socs.
From Patrick Wildt in bitrig with some additional changes.
|
|
Similiar changes were made in bitrig by Patrick Wildt.
As part of this change the physical load address for imx and sunxi have
changed. Any u-boot settings that include it will need to be modified.
imx: 0x10800000 -> 0x10300000
sunxi: 0x40800000 -> 0x40300000
Tested by bmercer, canacar and myself.
ok bmercer@
|
|
directories. Move the device tables while here as was done in bitrig.
With these changes the only use of the board id defines is in the soc
directories.
Tested by matthieu and djm on imx and myself on omap and sunxi (qemu).
ok djm@, ok jasper@ on an earlier version
|
|
|
|
Pointed out by dickman@.
ok sthen@ phessler@
|
|
|
|
ok deraadt, tests on glxpcib and ok mpi
|
|
this using an sd card with my rev C BeagleBone Black won't work. Should
fix similiar problems reported by Gerke Preussner and Andrew Hills on arm@
ok syl@
|
|
the omap and sunxi ramdisks won't build because they
call wdog_register() and kern_watchdog.c is !small_kernel
in config.
Leaving the watchdog devices out of the ramdisks won't
work either as armv7_machdep.c uses platform_watchdog_reset()
to reboot.
Deal with this by only calling wdog_register() when
not compiled with SMALL_KERNEL.
|
|
|
|
Tested and ok joshe@
|
|
after discussions with beck deraadt kettenis.
|
|
ok syl@
|
|
host controller because autoconf(9) already does it.
Breakage reported by todd@
|
|
|
|
bus_space_{read,write}_4 instead.
tested by nick@, ok bmercer@
|
|
ok dlg@ mpi@ deraadt@
|
|
ok syl@, bmercer@, jasper@
|
|
inspired by rapha@
ok rapha@, jasper@
|
|
|
|
|
|
size. Rever the bsize to default 512 to fix the problem while a proper
fix is worked on.
Spotted by rapha@
ok rapha@, fgsch@
|
|
resurrection of the bad idiom in the tree.
sufficient review by miod, kettenis, tedu
|
|
"Commit the driver code" deraadt@
|
|
Feedback by patrick and syl, tested by syl on BeagleBoard and BBB.
ok syl@
|
|
input and ok to move forward dlg@ patrick@ syl@
|
|
when there is no card.
Tested on pandaboard by patrick@, ok patrick@ and syl@
|
|
the code present in omap/omap.c imx/imx.c and sunxi/sunxi.c
All this code looks quite the same, so we move it in a generic armv7/armv7.c
This is a step closer to only one kernel for all armv7 boards.
ok patrick@, rapha@
|