Commit Graph

6 Commits

Author SHA1 Message Date
Till Straumann
98ff623e62 2007-12-08 Till Straumann <strauman@slac.stanford.edu>
*shared/irq/irq_supp.h: removed cpp test for
	BSP_SHARED_HANDLER_SUPPORT; BSPs using irq_supp.h
	*must* implement shared handlers.
2007-12-08 17:23:55 +00:00
Till Straumann
bc1077489c 2007-12-05 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/irq_supp.h: removed stray '*/'. Removed
	inclusion of <stdlib.h> which is unnecessary and broke
	if_dc in an obscure way (due to malloc/free redefinition
	in the networking code).
2007-12-05 19:49:37 +00:00
Joel Sherrill
1b1aca1fdb 2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/irq/irq.c, shared/irq/irq_supp.h: Correct conditionals and
	includes.
2007-12-03 15:44:59 +00:00
Till Straumann
c10dc130f9 2007-12-02 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/i8259.c, shared/irq/irq.h, shared/irq/irq_supp.h,
	shared/irq/openpic_i8259_irq.c: BSP_disable_irq_at_pic(),
	openpic_disable_irq(), BSP_irq_disable_at_i8259s() now return
	0/1 if irq was disabled/enabled prior to disabling.
	irq_supp.h now exports a inline helper routine for scanning
	a list of shared handlers; to be used by PIC drivers.
2007-12-02 21:49:07 +00:00
Till Straumann
34fb363561 2007-12-01 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/irq_supp.h: Make sure BSP_SHARED_HANDLER_SUPPORT
	is set. The shared irq manager supports shared interrupts
	(but requires also that the PIC-driver supports them by
	traversing the list of shared handlers).
	Declare C_dispatch_irq_handler() which must be defined
	(like the other routines declared in this header) by the
	PIC-driver.
2007-12-01 21:35:27 +00:00
Till Straumann
2eb9e3995c 2007-11-30 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/irq.h, shared/irq/irq.c, shared/irq/irq_init.c,
	shared/irq/irq_supp.h (added):
	Removed 'is_processor_irq()' from irq.c; the BSP routines
	BSP_enable_irq_at_pic()/BSP_disable_irq_at_pic() are required
	to ignore processor irqs anyways. Removed
	all BSP-defined constants from irq.c. This makes irq.c (almost)
	binary-compatible among BSPs (ultimate goal is making 'shared'
	a library).
	Added a header (irq_supp.h) defining the interface between
	the generic interrupt manager (irq.c) and the routines it
	requires to be supplied by the BSP (eventually, these
	should go into rtems/irq.h).
2007-11-30 21:40:12 +00:00