1. 23 10月, 2005 1 次提交
    • P
      powerpc: Run on old powermacs. · a575b807
      Paul Mackerras 提交于
      Old powermacs have a number of differences from current machines:
      - there is no interrupt tree in the device tree, just interrupt
        or AAPL,interrupt properties
      - the chosen node in the device tree is called /chosen@0
      - the OF claim method doesn't map the memory, so we have to do
        an explicit map call as well
      - there is no /chosen/cpu property on SMP machines
      - the NVRAM isn't structured as a set of partitions.
      
      This adapts the merged powermac support code to cope with these
      issues.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      a575b807
  2. 12 10月, 2005 1 次提交
  3. 10 10月, 2005 1 次提交
  4. 06 10月, 2005 1 次提交
    • P
      powerpc: Merge in the ppc64 version of the prom code. · 9b6b563c
      Paul Mackerras 提交于
      This brings in the ppc64 version of prom_init.c, prom.c and btext.c
      and makes them work for ppc32.  This also brings in the new calling
      convention, where the first entry to the kernel (with r5 != 0) goes
      to the prom_init code, which then restarts from the beginning (with
      r5 == 0) after it has done its stuff.
      
      For now this also brings in the ppc32 version of setup.c.  It also
      merges lmb.h.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      9b6b563c
  5. 09 9月, 2005 1 次提交
    • P
      [PATCH] Separate pci bits out of struct device_node · 1635317f
      Paul Mackerras 提交于
      This patch pulls the PCI-related junk out of struct device_node and
      puts it in a separate structure, struct pci_dn.  The device_node now
      just has a void * pointer in it, which points to a struct pci_dn for
      nodes that represent PCI devices.  It could potentially be used in
      future for device-specific data for other sorts of devices, such as
      virtual I/O devices.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      1635317f
  6. 06 9月, 2005 1 次提交
  7. 29 8月, 2005 3 次提交
  8. 02 8月, 2005 1 次提交
  9. 22 6月, 2005 1 次提交
  10. 06 5月, 2005 1 次提交
    • P
      [PATCH] ppc64: fix prom.c compile warning · 3892c5fa
      Paul Mackerras 提交于
      The code in unflatten_device_tree knows that get_property is written to
      only return with lenp equal to 1 when also returning a valid pointer.
      The gcc 3.3.3 compiler is not able to prove this to itself, so it warns
      about a possible uninitialized pointer dereference:
      
       .../arch/ppc64/kernel/prom.c: In function `unflatten_device_tree':
       .../arch/ppc64/kernel/prom.c:828:
       warning: `p' might be used uninitialized in this function
      
      Unless it is desired to rework the interaction between the two
      functions, this will keep the existing behavior but quiet the compiler.
      Signed-off-by: NAmos Waterland <apw@us.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3892c5fa
  11. 01 5月, 2005 1 次提交
    • P
      [PATCH] ppc64: Fix irq parsing on powermac · dc3ec750
      Paul Mackerras 提交于
      When I tried Ben's patches to the powermac sound driver on my G5, I found
      that it was taking enormous numbers of sound DMA transmit interrupts.  This
      turned out to be because it was incorrectly configured as level-sensitive
      instead of edge-sensitive, which in turn was because the code that parses
      the interrupt tree that Open Firmware gives us was incorrectly assigning
      another device the same irq number as the sound DMA transmit interrupt
      (i.e.  1).
      
      This patch fixes the problem, in a somewhat quick and dirty way for now,
      but one which will work for all the machines we currently run on.
      Ultimately Ben and I want to do something more general and robust, but this
      should go in for 2.6.12.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      dc3ec750
  12. 17 4月, 2005 3 次提交