/* Erranum FEr PCI-#8 */ mv64x60_clr_bits(&bh, MV64x60_PCI0_CMD, (1<<5) | (1<<9)); mv64x60_clr_bits(&bh, MV64x60_PCI1_CMD, (1<<5) | (1<<9)); 
if (bh.type == MV64x60_TYPE_MV64360) { /* Erratum FEr PCI-#9 */ mv64x60_clr_bits(&bh, MV64x60_PCI1_CMD, (1<<4) | (1<<5) | (1<<6) | (1<<7)); mv64x60_set_bits(&bh, MV64x60_PCI1_CMD, (1<<8) | (1<<9)); } else { mv64x60_clr_bits(&bh, MV64x60_PCI1_CMD, (1<<6) | (1<<7)); mv64x60_set_bits(&bh, MV64x60_PCI1_CMD, (1<<4) | (1<<5) | (1<<8) | (1<<9)); } 
katana_intr_setup(void){	/* MPP 8, 9, and 10 */	mv64x60_clr_bits(&bh, MV64x60_MPP_CNTL_1, 0xfff);	/* MPP 14 */	if ((katana_id == KATANA_ID_750I) || (katana_id == KATANA_ID_752I))		mv64x60_clr_bits(&bh, MV64x60_MPP_CNTL_1, 0x0f000000);	/*	 * Define GPP 8,9,and 10 interrupt polarity as active low	 * input signal and level triggered	 */	mv64x60_set_bits(&bh, MV64x60_GPP_LEVEL_CNTL, 0x700);	mv64x60_clr_bits(&bh, MV64x60_GPP_IO_CNTL, 0x700);	if ((katana_id == KATANA_ID_750I) || (katana_id == KATANA_ID_752I)) {		mv64x60_set_bits(&bh, MV64x60_GPP_LEVEL_CNTL, (1<<14));		mv64x60_clr_bits(&bh, MV64x60_GPP_IO_CNTL, (1<<14));	}	/* Config GPP intr ctlr to respond to level trigger */	mv64x60_set_bits(&bh, MV64x60_COMM_ARBITER_CNTL, (1<<10));	/* Erranum FEr PCI-#8 */	mv64x60_clr_bits(&bh, MV64x60_PCI0_CMD, (1<<5) | (1<<9));	mv64x60_clr_bits(&bh, MV64x60_PCI1_CMD, (1<<5) | (1<<9));	/*	 * Dismiss and then enable interrupt on GPP interrupt cause	 * for CPU #0	 */	mv64x60_write(&bh, MV64x60_GPP_INTR_CAUSE, ~0x700);	mv64x60_set_bits(&bh, MV64x60_GPP_INTR_MASK, 0x700);	if ((katana_id == KATANA_ID_750I) || (katana_id == KATANA_ID_752I)) {		mv64x60_write(&bh, MV64x60_GPP_INTR_CAUSE, ~(1<<14));		mv64x60_set_bits(&bh, MV64x60_GPP_INTR_MASK, (1<<14));	}	/*	 * Dismiss and then enable interrupt on CPU #0 high cause reg	 * BIT25 summarizes GPP interrupts 8-15	 */	mv64x60_set_bits(&bh, MV64360_IC_CPU0_INTR_MASK_HI, (1<<25));}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/f4c6cc8d1e2305796f7fdad52d83b88cea4d2276/katana.c/buggy/arch/ppc/platforms/katana.c