binutils/
[external/binutils.git] / sim / ppc / hw_cpu.c
index 5be8e25..117a4c2 100644 (file)
 #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;
@@ -72,8 +95,7 @@ static const device_interrupt_port_descriptor hw_cpu_interrupt_ports[] = {
 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;