linux/drivers/serial
Brent Casavant 22329b511a [PATCH] ioc4: Core driver rewrite
This series of patches reworks the configuration and internal structure
of the SGI IOC4 I/O controller device drivers.

These changes are motivated by several factors:

- The IOC4 chip PCI resources are of mixed use between functions (i.e.
  multiple functions are handled in the same address range, sometimes
  within the same register), muddling resource ownership and initialization
  issues.  Centralizing this ownership in a core driver is desirable.

- The IOC4 chip implements multiple functions (serial, IDE, others not
  yet implemented in the mainline kernel) but is not a multifunction
  PCI device.  In order to properly handle device addition and removal
  as well as module insertion and deletion, an intermediary IOC4-specific
  driver layer is needed to handle these operations cleanly.

- All IOC4 drivers are currently enabled by a single CONFIG value.  As
  not all systems need all IOC4 functions, it is desireable to enable
  these drivers independently.

- The current IOC4 core driver will trigger loading of all function-level
  drivers, as it makes direct calls to them.  This situation should be
  reversed (i.e. function-level drivers cause loading of core driver)
  in order to maintain a clear and least-surprise driver loading model.

- IOC4 hardware design necessitates some driver-level dependency on
  the PCI bus clock speed.  Current code assumes a 66MHz bus, but the
  speed should be autodetected and appropriate compensation taken.

This patch series effects the above changes by a newly and better designed
IOC4 core driver with which the function-level drivers can register and
deregister themselves upon module insertion/removal.  By tracking these
modules, device addition/removal is also handled properly.  PCI resource
management and ownership issues are centralized in this core driver, and
IOC4-wide configuration actions such as bus speed detection are also
handled in this core driver.

This patch:

The SGI IOC4 I/O controller chip implements multiple functions, though it is
not a multi-function PCI device.  Additionally, various PCI resources of the
IOC4 are shared by multiple hardware functions, and thus resource ownership by
driver is not clearly delineated.  Due to the current driver design, all core
and subordinate drivers must be loaded, or none, which is undesirable if not
all IOC4 hardware features are being used.

This patch reorganizes the IOC4 drivers so that the core driver provides a
subdriver registration service.  Through appropriate callbacks the subdrivers
can now handle device addition and removal, as well as module insertion and
deletion (though the IOC4 IDE driver requires further work before module
deletion will work).  The core driver now takes care of allocating PCI
resources and data which must be shared between subdrivers, to clearly
delineate module ownership of these items.

Signed-off-by: Brent Casavant <bcasavan@sgi.com>
Acked-by: Pat Gefre <pfg@sgi.com
Acked-by: Jeremy Higdon <jeremy@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-21 18:46:32 -07:00
..
cpm_uart [PATCH] cpm_uart: Route SCC2 pins for the STx GP3 board 2005-06-21 18:46:23 -07:00
jsm [PATCH] make lots of things static 2005-05-01 08:59:29 -07:00
8250_acorn.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
8250_acpi.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
8250_early.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
8250_gsc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
8250_hp300.c [PATCH] Serial: Convert 8250_hp300 to use serial8250_{un,}register_port 2005-04-26 15:37:45 +01:00
8250_pci.c [PATCH] 8250_pci.c: add comment about enum sorting order 2005-05-06 10:19:09 +01:00
8250_pnp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
8250.c When we detect that a 16550 was in fact part of a NatSemi SuperIO chip 2005-05-21 15:52:23 +01:00
8250.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
21285.c [PATCH] Serial: Add uart_insert_char() 2005-05-09 23:21:59 +01:00
68328serial.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
68328serial.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
68360serial.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
amba-pl010.c [PATCH] Serial: Add uart_insert_char() 2005-05-09 23:21:59 +01:00
amba-pl011.c [PATCH] Serial: Add uart_insert_char() 2005-05-09 23:21:59 +01:00
au1x00_uart.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bast_sio.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
clps711x.c [PATCH] Serial: Add uart_insert_char() 2005-05-09 23:21:59 +01:00
crisv10.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
crisv10.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dz.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dz.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
icom.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
icom.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
imx.c [PATCH] ARM: 2654/1: i.MX UART initialization sets and honors UFCR value 2005-04-29 22:46:40 +01:00
ioc4_serial.c [PATCH] ioc4: Core driver rewrite 2005-06-21 18:46:32 -07:00
ip22zilog.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip22zilog.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Kconfig [PATCH] ppc64 iSeries: allow build with no PCI 2005-06-21 18:46:31 -07:00
m32r_sio_reg.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m32r_sio.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
m32r_sio.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mcfserial.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mcfserial.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mpc52xx_uart.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mpsc.c [PATCH] ppc annotations: mpsc 2005-04-25 18:32:12 -07:00
mpsc.h [PATCH] ppc annotations: mpsc 2005-04-25 18:32:12 -07:00
mux.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pmac_zilog.c [PATCH] fix u32 vs. pm_message_t in drivers/ 2005-04-16 15:25:35 -07:00
pmac_zilog.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pxa.c [PATCH] Serial: Add uart_insert_char() 2005-05-09 23:21:59 +01:00
s3c2410.c [PATCH] Serial: Add uart_insert_char() 2005-05-09 23:21:59 +01:00
sa1100.c [PATCH] Serial: remove unused variable in sa1100 driver 2005-06-08 19:26:47 +01:00
serial_core.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
serial_cs.c [PATCH] serial_cs device identification fix 2005-05-17 07:59:19 -07:00
serial_lh7a40x.c [PATCH] Serial: Add uart_insert_char() 2005-05-09 23:21:59 +01:00
serial_txx9.c [PATCH] Serial: Add uart_insert_char() 2005-05-09 23:21:59 +01:00
sh-sci.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sh-sci.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sn_console.c [PATCH] sn_console: make sal_console_uart static again 2005-05-01 08:59:12 -07:00
suncore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
suncore.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sunsab.c [SUNSAB]: Defer register updates until transmitter is idle. 2005-05-11 11:34:32 -07:00
sunsab.h [SUNSAB]: Defer register updates until transmitter is idle. 2005-05-11 11:34:32 -07:00
sunsu.c [SPARC64]: In sunsu driver, make sure to fully init chip for kbd/ms 2005-04-21 22:06:13 -07:00
sunzilog.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sunzilog.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
uart00.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
v850e_uart.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vr41xx_siu.c [PATCH] serial: update NEC VR4100 series serial support 2005-06-04 17:13:01 -07:00