Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/com_puc.c
RevisionDateAuthorComments
 1.27  25-Mar-2021  rin Introduce sc_poll_ticks and obsolete COM_HW_POLL bit in sc_hwflags.
Polling is scheduled at every sc_poll_ticks ticks.

This is useful to work around H/W bug, by which interrupts are lost
*sometimes*; interrupt-based I/O mostly works and no need for polling
every counter ticks.
 1.26  08-Dec-2018  thorpej branches: 1.26.12; 1.26.14;
Clean up initialization of com_regs structure, in preparation for
some additional changers.
 1.25  30-Nov-2018  jmcneill Add support for polling com devices when no interrupt is available.
 1.24  27-Apr-2017  msaitoh branches: 1.24.8; 1.24.10;
Use {isa,pci}_intr_establish"_xname"() for intrctl(8).
 1.23  23-May-2014  msaitoh branches: 1.23.4; 1.23.18;
Print the type of serial port from the interface field in the PCI class
register.
 1.22  29-Mar-2014  christos branches: 1.22.2;
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.21  31-Jul-2013  soren On x86, print the I/O address of lpt_puc as for com_puc so that hacks
using iopl/ioperm can be told where to find the parallel port.

Closes PR kern/43683.
 1.20  22-Jul-2013  soren Since puc(4) serial ports are typically not identified in the
BIOS COM[1234] table, the I/O address must be manually set using
installboot(8) in order to enable a serial console.
Print the address here so the user doesn't have to dig through
PCI configuration space to find it.

Enable suspend/resume hooks.
 1.19  26-Nov-2009  njoly branches: 1.19.12; 1.19.22; 1.19.26; 1.19.34;
Cleanup interrupt establish error messages. Do not mix
aprint_error/aprint_normal/printf calls for a single line.
 1.18  14-Mar-2008  cube branches: 1.18.4;
Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend). Use proper types and ansify where appropriate.
 1.17  19-Oct-2007  ad branches: 1.17.12; 1.17.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.16  16-Nov-2006  christos branches: 1.16.8; 1.16.22; 1.16.24; 1.16.28;
__unused removal on arguments; approved by core.
 1.15  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.14  13-Jul-2006  gdamore branches: 1.14.4; 1.14.6;
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.13  11-Dec-2005  christos branches: 1.13.4; 1.13.8; 1.13.16;
merge ktrace-lwp.
 1.12  28-Jun-2005  thorpej branches: 1.12.2;
Use ANSI function decls and static.
 1.11  04-Feb-2005  perry de-__P
 1.10  03-Feb-2004  fredb branches: 1.10.8; 1.10.10;
Fix a warning about possibly uninitialized variable.
 1.9  03-Feb-2004  fredb Enable the 8X clock on the SIIG Cyberserial serial and combination PCI
cards at attachment time, in order to support bit rates greater than 115K,
as discussed on tech-kern.
 1.8  31-Jan-2003  thorpej branches: 1.8.2;
Use aprint_*().
 1.7  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.6  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.5  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.4  15-Nov-2001  lukem don't need <sys/types.h> when including <sys/param.h>
 1.3  13-Nov-2001  lukem add RCSID
 1.2  16-Mar-2001  bouyer branches: 1.2.2;
Ops, forgot to commit this file along with the "variable com freq" support.
Thanks to Bill Sommerfeld for pointing this out.
 1.1  26-Jun-1998  cgd branches: 1.1.14; 1.1.24; 1.1.26;
add a driver for "PCI 'universal' communications" cards, that is, PCI cards
which contain 'standard' com- and lpt-type ports. Some of these present
as PCI simple-communications/serial or simple-communications/parallel
devices, but many do not. (Additionally, there is no document that I can
find that describes the "specific well-konwn register-level" description
of how the 'standard' devices' config space headers shold work.) Eventually,
some of the devices driven by this code should become simple pci attachments
for the 'lpt' and 'com' drivers, but that requires solid documentation.
 1.1.26.4  18-Oct-2002  nathanw Catch up to -current.
 1.1.26.3  08-Jan-2002  nathanw Catch up to -current.
 1.1.26.2  14-Nov-2001  nathanw Catch up to -current.
 1.1.26.1  09-Apr-2001  nathanw Catch up with -current.
 1.1.24.1  22-Mar-2001  he Pull up revision 1.2 (requested by bouyer):
Allow attaching ``com'' devices at frequency other than the
standard COM_FREQ.
 1.1.14.1  27-Mar-2001  bouyer Sync with HEAD.
 1.2.2.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.2.2.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.8.2.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.8.2.4  04-Feb-2005  skrll Sync with HEAD.
 1.8.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1  03-Aug-2004  skrll Sync with HEAD
 1.10.10.1  12-Feb-2005  yamt sync with head.
 1.10.8.1  29-Apr-2005  kent sync with -current
 1.12.2.3  17-Mar-2008  yamt sync with head.
 1.12.2.2  27-Oct-2007  yamt sync with head.
 1.12.2.1  30-Dec-2006  yamt sync with head.
 1.13.16.3  17-Jun-2006  gdamore Undo the undo. Restore COM_INIT_REGS.
 1.13.16.2  17-Jun-2006  gdamore Revert COM_INIT_REGS.
 1.13.16.1  15-Jun-2006  gdamore Adapt to new com framework.
 1.13.8.1  11-Aug-2006  yamt sync with head
 1.13.4.1  09-Sep-2006  rpaulo sync with head
 1.14.6.2  10-Dec-2006  yamt sync with head.
 1.14.6.1  22-Oct-2006  yamt sync with head
 1.14.4.1  18-Nov-2006  ad Sync with head.
 1.16.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.16.24.2  23-Mar-2008  matt sync with HEAD
 1.16.24.1  06-Nov-2007  matt sync with HEAD
 1.16.22.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.16.8.1  23-Oct-2007  ad Sync with head.
 1.17.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.17.12.1  24-Mar-2008  keiichi sync with head.
 1.18.4.1  11-Mar-2010  yamt sync with head
 1.19.34.1  23-Jul-2013  riastradh sync with HEAD
 1.19.26.2  18-May-2014  rmind sync with head
 1.19.26.1  28-Aug-2013  rmind sync with head
 1.19.22.2  03-Dec-2017  jdolecek update from HEAD
 1.19.22.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.19.12.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.22.2.1  10-Aug-2014  tls Rebase.
 1.23.18.1  02-May-2017  pgoyette Sync with HEAD - tag prg-localcount2-base1
 1.23.4.1  28-Aug-2017  skrll Sync with HEAD
 1.24.10.1  10-Jun-2019  christos Sync with HEAD
 1.24.8.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.26.14.1  03-Apr-2021  thorpej Sync with HEAD.
 1.26.12.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed