MIPS: SGI-IP27: get rid of volatile and hubreg_t
Replace hub register access with __raw_readq/__raw_writeq and get rid of hubreg_t completely. Also remove no longer (probably never used) used defines Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org
This commit is contained in:

committed by
Paul Burton

szülő
72faa7a773
commit
db0e7d4e42
@@ -63,7 +63,7 @@ unsigned long hub_pio_map(cnodeid_t cnode, xwidgetnum_t widget,
|
||||
* after we write it.
|
||||
*/
|
||||
IIO_ITTE_PUT(nasid, i, HUB_PIO_MAP_TO_MEM, widget, xtalk_addr);
|
||||
(void) HUB_L(IIO_ITTE_GET(nasid, i));
|
||||
__raw_readq(IIO_ITTE_GET(nasid, i));
|
||||
|
||||
return NODE_BWIN_BASE(nasid, widget) + (xtalk_addr % BWIN_SIZE);
|
||||
}
|
||||
@@ -135,7 +135,7 @@ static void hub_setup_prb(nasid_t nasid, int prbnum, int credits)
|
||||
**/
|
||||
static void hub_set_piomode(nasid_t nasid)
|
||||
{
|
||||
hubreg_t ii_iowa;
|
||||
u64 ii_iowa;
|
||||
hubii_wcr_t ii_wcr;
|
||||
unsigned i;
|
||||
|
||||
|
@@ -177,7 +177,7 @@ extern void ip27_reboot_setup(void);
|
||||
|
||||
void __init plat_mem_setup(void)
|
||||
{
|
||||
hubreg_t p, e, n_mode;
|
||||
u64 p, e, n_mode;
|
||||
nasid_t nid;
|
||||
|
||||
ip27_reboot_setup();
|
||||
|
@@ -85,7 +85,7 @@ static int ms1bit(unsigned long x)
|
||||
static void ip27_do_irq_mask0(void)
|
||||
{
|
||||
int irq, swlevel;
|
||||
hubreg_t pend0, mask0;
|
||||
u64 pend0, mask0;
|
||||
cpuid_t cpu = smp_processor_id();
|
||||
int pi_int_mask0 =
|
||||
(cputoslice(cpu) == 0) ? PI_INT_MASK0_A : PI_INT_MASK0_B;
|
||||
@@ -132,7 +132,7 @@ static void ip27_do_irq_mask0(void)
|
||||
static void ip27_do_irq_mask1(void)
|
||||
{
|
||||
int irq, swlevel;
|
||||
hubreg_t pend1, mask1;
|
||||
u64 pend1, mask1;
|
||||
cpuid_t cpu = smp_processor_id();
|
||||
int pi_int_mask1 = (cputoslice(cpu) == 0) ? PI_INT_MASK1_A : PI_INT_MASK1_B;
|
||||
struct slice_data *si = cpu_data[cpu].data;
|
||||
|
@@ -44,7 +44,7 @@ static int is_fine_dirmode(void)
|
||||
return ((LOCAL_HUB_L(NI_STATUS_REV_ID) & NSRI_REGIONSIZE_MASK) >> NSRI_REGIONSIZE_SHFT) & REGIONSIZE_FINE;
|
||||
}
|
||||
|
||||
static hubreg_t get_region(cnodeid_t cnode)
|
||||
static u64 get_region(cnodeid_t cnode)
|
||||
{
|
||||
if (fine_mode)
|
||||
return COMPACT_TO_NASID_NODEID(cnode) >> NASID_TO_FINEREG_SHFT;
|
||||
@@ -52,9 +52,9 @@ static hubreg_t get_region(cnodeid_t cnode)
|
||||
return COMPACT_TO_NASID_NODEID(cnode) >> NASID_TO_COARSEREG_SHFT;
|
||||
}
|
||||
|
||||
static hubreg_t region_mask;
|
||||
static u64 region_mask;
|
||||
|
||||
static void gen_region_mask(hubreg_t *region_mask)
|
||||
static void gen_region_mask(u64 *region_mask)
|
||||
{
|
||||
cnodeid_t cnode;
|
||||
|
||||
|
@@ -130,7 +130,7 @@ void nmi_cpu_eframe_save(nasid_t nasid, int slice)
|
||||
|
||||
void nmi_dump_hub_irq(nasid_t nasid, int slice)
|
||||
{
|
||||
hubreg_t mask0, mask1, pend0, pend1;
|
||||
u64 mask0, mask1, pend0, pend1;
|
||||
|
||||
if (slice == 0) { /* Slice A */
|
||||
mask0 = REMOTE_HUB_L(nasid, PI_INT_MASK0_A);
|
||||
|
Reference in New Issue
Block a user