summaryrefslogtreecommitdiffstats
path: root/sys/dev/puc
AgeCommit message (Collapse)AuthorFilesLines
2021-03-05ansijsg2-14/+6
2020-08-14Re-commit Exar XR17V35x serial port support previously backed out:jcs1-1/+4
The Exar XR17V354 has 4 ports that have a 256-byte FIFO, use a frequency of 125Mhz, and have a unique sleep register. A custom interrupt handler is setup in puc for these ports so it can check a register which reports which ports triggered the interrupt, rather than having to run comintr for every port every time. To avoid probing for these ports in com_attach_subr which requires access to registers that may be reserved on certain platforms, pass the sc_uarttype from com_puc_attach since the port type is already known based on the puc device vendor/id. Input from kettenis, tested in snaps
2018-04-15pucdata: convert port types and frequencies to a lookup table tojcs1-5/+10
allow for custom frequencies not a multiple of COM_FREQ ok deraadt
2017-12-30Delete unnecessary <sys/file.h> includesguenther1-2/+1
ok millert@ krw@
2017-09-08If you use sys/param.h, you don't need sys/types.hderaadt1-2/+1
2015-03-14Remove some includes include-what-you-use claims don'tjsg1-2/+1
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
2014-09-14remove uneeded proc.h includesjsg1-2/+1
ok mpi@ kspillner@
2013-12-09use new com.c bus-independent suspend/resume code, rather than trying toderaadt1-19/+2
craft broken local code here ok kettenis
2011-11-21this should have gone away because it is now in files.pcideraadt1-0/+0
2011-11-15Simplify various parts of the puc(4) attachment code. Tested lightlyderaadt3-23/+3
by krw and myself.
2011-10-25Use a new encoding for the entries in the pucdata table, the result isderaadt2-9/+10
that the .o file is half the size. Tested by camield (who just doubled the table size recently for a 16-port device). Hopefully no regressions, since this is a pretty large change of a very large table.
2010-08-06Initial stab at making com@puc suspend and resume properly. Works finekettenis1-5/+23
for using cu(1) between two OpenBSD machines. Probably doesn't work for serial consoles but we don't support those on puc(4) anyway. ok deraadt@
2010-06-26Don't #include <sys/user.h> into files that don't need the stuffguenther1-2/+1
it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
2009-07-15print interrupt string like com at puc doesderaadt1-2/+2
2008-05-21Switch i386 from pccom to com. Welcomed by many.kettenis2-19/+3
ok dlg@, jsing@, deraadt@
2007-12-04Make puc(4) detachable.kettenis1-10/+2
Tested by millert@
2006-11-05kill leftover debug printfmartin1-2/+1
ok mickey
2006-07-31puc@cardbus (only added (commented out) to whom has puc@pci enabled)mickey2-15/+39
tested on puc@pci by fkr and meself on the cardbus. still needs a bit more work but generally works. deraadt@ ok and some input from miod@
2006-06-01remove another useless isavar.h includefkr1-5/+1
ok miod@
2005-12-24establish interrupt at IPL_TTY instead of IPL_HIGH, so it doesn'tdjm1-2/+2
reenter comstart; pr #4947 and fix from Kudo Takashi, ok deraadt@
2005-11-21Move contents of sys/select.h to sys/selinfo.h in preparation for amillert1-2/+2
userland-visible sys/select.h. Consistent with what Net and Free do. OK deraadt@, tested with full ports build by naddy@.
2005-09-26Share com probe code between com and pccom; allows us to get rid of awkwardmiod1-172/+2
code duplication in cardbus, pcmcia and puc attachments. Joint effort with fgs@; blessed deraadt@
2005-07-18Compensate for NCOM_PUC disappearance; ok deraadt@miod1-3/+3
2004-08-19Do as much in com_puc_attach2() as done in com_attach_subr(), until theymiod1-5/+30
really get cleaned up and factorized; fixes puc operation on amd64 and sparc64. tested pval@ millert@ naddy@; ok deraadt@ millert@
2003-07-15i386 needs isavar.h, sparc64 doesn't (no one else uses this.. yet)jason1-1/+3
2002-03-14First round of __P removal in sysmillert2-7/+7
2002-01-30Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ oknordin1-2/+1
2001-08-08initialize timeouts, since it's a copy of comattach; reported by Larry Moore <lmoore@starwon.com.au>mickey1-1/+5
2001-03-15support puc devices with higher speeds (not tested yet)deraadt1-1/+4
2000-07-21convert to new timeoutsmickey1-3/+4
1999-11-28Add puc lpt driver support, not actually tested...downsj2-1/+105
1999-10-26Add com/pccom driver for puc.downsj2-0/+279