This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "cpu.h"
-/* CPU (HW) - Interface to a Processor
+/* DEVICE
+
+
+ cpu - Interface to a Processor
+
+
+ DESCRIPTION
- Description:
The CPU device provides the connection between the interrupt net
(linking the devices and the interrupt controller) and the
to device interrupt sources and its outputs (sreset, int, et.al.)
connected to this device.
- Properties:
- cpu-nr = <integer>. Specify the processor (1..N) that this cpu
- device node should control. */
+ PROPERTIES
+
+
+ cpu-nr = <integer> (required)
+
+
+ Specify the processor (1..N) that this cpu device node should
+ control.
+
+
+ EXAMPLES
+
+
+ Connect an OpenPIC interrupt controller interrupt ports to
+ processor zero.
+
+ | -o '/phb/opic@0 > irq0 int /cpus/cpu@0' \
+ | -o '/phb/opic@0 > init hreset /cpus/cpu@0' \
+
+
+ */
typedef struct _hw_cpu_device {
int cpu_nr;
static void *
hw_cpu_create(const char *name,
const device_unit *unit_address,
- const char *args,
- device *parent)
+ const char *args)
{
hw_cpu_device *hw_cpu = ZALLOC(hw_cpu_device);
return hw_cpu;