2 Copyright (C) 1998, 2007, 2008, 2009, 2010, 2011
3 Free Software Foundation, Inc.
4 Contributed by Andrew Cagney and Cygnus Solutions.
6 This file is part of GDB, the GNU debugger.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
25 /* Initialize a port */
27 struct hw_port_descriptor
32 port_direction direction
;
35 void set_hw_ports (struct hw
*hw
, const struct hw_port_descriptor ports
[]);
37 typedef void (hw_port_event_method
)
44 void set_hw_port_event (struct hw
*hw
, hw_port_event_method
*to_port_event
);
49 A device drives its output ports using the call
58 /* This port event will then be propagated to any attached
61 Any interpretation of PORT and VALUE is model dependent. As a
62 guideline the following are recommended: PCI interrupts A-D should
63 correspond to ports 0-3; level sensitive interrupts be requested
64 with a value of one and withdrawn with a value of 0; edge sensitive
65 interrupts always have a value of 1, the event its self is treated
71 Attached to each port of a device can be zero or more
72 destinations. These destinations consist of a device/port pair.
73 A destination is attached/detached to a device line using the
74 attach and detach calls. */
81 object_disposition disposition
);
90 /* Iterate over the list of ports attached to a device */
92 typedef void (hw_port_traverse_function
)
101 hw_port_traverse_function
*handler
,
105 /* DESTINATION is attached (detached) to LINE of the device ME
110 Users refer to port numbers symbolically. For instance a device
111 may refer to its `INT' signal which is internally represented by
114 To convert to/from the symbolic and internal representation of a
115 port name/number. The following functions are available. */
119 const char *symbolic_name
,
120 port_direction direction
);
127 port_direction direction
);