summaryrefslogtreecommitdiff
path: root/sys/arch/socppc/dev
AgeCommit message (Collapse)Author
2010-09-20Get rid of evcount's support for arranging counters in a treeMatthew Dempsky
hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
2010-03-03Add support for the ipp_ind_ext_int[0] interrupt.Mark Kettenis
2009-12-21Cleanup promiscuous mode and multicast handling. From Brad.Mark Kettenis
2009-10-01Generic soft interrupts for macppc. Tested by mk@, deraadt@Mark Kettenis
ok miod@
2009-09-14Deal with the fact that we need to control an external PHY attached to TSEC2Mark Kettenis
through the registers of TSEC1. Makes the first ethernet port on the rb600 usable.
2009-09-12Compensate for the fact the the FDT uses a different offset for the registersMark Kettenis
than the hardcoded ones we used before. Replace a few magic numbers with #defines while I'm there. Based on suggestions from dms@.
2009-09-12Initialize global pointer to interrupt controller softc earlier such that weMark Kettenis
don't crash if we unmask a preconfigured interrupt.
2009-09-09Use information from the FDT to set up bus tags and extents.Mark Kettenis
2009-09-06Attach devices to obio(4) based on information from the flattened deviceMark Kettenis
tree. Since that information is also used for the PCI interrupts, devices in mini-PCI slots should work now as well, at least in the rb600.
2009-09-02Attach devices to mainbus(4) based on information from the flattened deviceMark Kettenis
tree.
2009-08-27malloc() last two args were swapped, amazing things did not break; ok kettenis@Miod Vallat
2009-08-26Hack to get the right interrupt pin for the onboard vge(4) on the RB600.Mark Kettenis
I'll fix this properly when we use the device tree to configure the pci bus.
2009-08-26Use comconsfreq instead of hardcoded frequency. Still a bit of a hack, butMark Kettenis
this lets me run the RB600 at 400MHz.
2009-08-25Set up bus tag for mmio. Create extents corresponding to the bus tags andMark Kettenis
pass them along when attaching the pci bus.
2009-08-24Specify proper size for device softc.Mark Kettenis
2009-08-24Glue to deal with the retarded way the CF slots are wired up on the RB600.Mark Kettenis
2009-08-22Constify the what/name parameter of pci_intr_establish().Michael Knudsen
Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
2009-08-13- set DV_IFNET, instead of DV_NULLJasper Lievisse Adriaanse
ok kettenis@
2009-08-09MCLGETI() will now allocate a mbuf header if it is not provided, thusTheo de Raadt
reducing the amount of splnet/splx dancing required.. especially in the worst case (of m_cldrop) ok dlg kettenis damien
2009-06-09backout interrupt diff until it the next round of fixesTheo de Raadt
2009-06-02Reintroduce the macppc interrupt subsystem rewrite. Several bugs haveDale Rahn
been found and corrected.
2009-03-30bzero pci attach argsMark Kettenis
2009-02-22Replace bcmp in while loop with check of ac_multirangecnt.Mark Kettenis
From brad@comstyle.com. ok deraadt@
2009-02-17- increase the delays in tsec_mii_{read,write}reg() , makes my n1200 happierJasper Lievisse Adriaanse
hints and ok kettenis@
2009-01-30Set mbuf watermarks.Mark Kettenis
2009-01-30Deal with running out of receive buffers.Mark Kettenis
2009-01-30Properly clean out our rings when we down the interface.Mark Kettenis
2009-01-29Make multicast actually work this time.Mark Kettenis
2009-01-29Switch tsec(4) over to using MCLGETI when allocating mbufs for the rx ring.Mark Kettenis
2009-01-28Implement proper multicast support.Mark Kettenis
2008-12-04Revert ppc intr stuff. Make socppc compile again. -mojMats O Jansson
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-10-12Adjust for redesigned powerpc interrupt architecture.Mark Kettenis
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-08-07- Enable ALTQ support.Brad Smith
- Let the VLAN driver know that the hw can send and receive full size VLAN tagged packets. Tested by maja@
2008-05-26Fix typo, such that this actually compiles.Mark Kettenis
2008-05-26Count outbound packets.Brad Smith
ok kettenis@
2008-05-26Make bringing the interface down work properly (includes a line stolenMark Kettenis
from a diff by brad@).
2008-05-25Specify the PHY to be used in the kernel config instead of hardcoding itMark Kettenis
int tsec(4).
2008-05-25Default to full-duplex MII mode such that a directly connected integratedMark Kettenis
switch has a chance to work. Don't call into the mii layer if no PHYs were attached. Makes the integrated switch on the Thecus N1200 visible to the CPU.
2008-05-25Fix typo; makes TSEC2 actually get Rx interrupts.Mark Kettenis
2008-05-24Strip off Ethernet CRC; makes dhclient shut up.Mark Kettenis
2008-05-24Increase the number of segments in a dma map to make sure a packet fits.Mark Kettenis
2008-05-24Use MAC address passed by the firmware.Mark Kettenis
2008-05-24Configure the media when brining up an interface.Mark Kettenis
2008-05-19A driver for the Three Speed Ethernet Controller (TSEC) found on theMark Kettenis
Freescale MPC8349E SoC platform. Still has some bugs, but it's getting there.
2008-05-19Add support for TSEC interrupts.Mark Kettenis
2008-05-17Give mainbus(4) a bus_dma tag and pass it down. Let socpcic(4) use thisMark Kettenis
tag instead of having it create its own.
2008-05-13Meaningful panic messages; ok kettenisMiod Vallat