1. 12 Mar, 2007 3 commits
    • Mike Frysinger's avatar
      sh: Convert struct ioctls to static defines. · fbd16846
      Mike Frysinger authored
      This fixes up some compile failures for cases where we don't include
      all of the headers. There's not much point in keeping the struct
      references around anyways, most of the others have been converted
      already.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      fbd16846
    • Paul Mundt's avatar
      sh: Define missing __NR_readahead. · 72a121ba
      Paul Mundt authored
      For some reason sh was missing __NR_readahead, even though the
      syscall was wired up, and the slot was reserved. Caught with
      dwmw2's missing syscall checker.
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      72a121ba
    • Hideo Saito's avatar
      sh: Fix PCI BAR address-space wraparound. · bb686609
      Hideo Saito authored
      When a SH7751R system includes a card that has wide range space
      like a graphics card, the pci-pci bridge controller can't set the
      correct address range.
      
      For example, when *lower_limit is 0xfd000000 and bar_size is
      0x4000000, in the following code at arch/sh/drivers/pci/pci-auto.c,
      0x0 is set in bar_value.
      
      pciauto_setup_bars()
      {
      ...
                      bar_value = ((*lower_limit - 1) & ~(bar_size - 1)) + bar_size;
      ...
                      *lower_limit = bar_value + bar_size;
      }
      
      As a result, 0x4000000 is set in *lower_limit, but this value is wrong.
      
      The following patch avoids this problem by checking the range of the
      value and refusing to update the BAR if the calculated value ends up
      being bogus.
      Signed-off-by: default avatarHideo Saito <saito@densan.co.jp>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      bb686609
  2. 10 Mar, 2007 37 commits