Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
13deaa5a
Commit
13deaa5a
authored
Aug 02, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.ninka.net:/home/davem/src/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5
parents
5057c65e
0664847f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
182 additions
and
75 deletions
+182
-75
arch/sparc64/defconfig
arch/sparc64/defconfig
+11
-0
arch/sparc64/kernel/pci_schizo.c
arch/sparc64/kernel/pci_schizo.c
+98
-58
drivers/net/tg3.c
drivers/net/tg3.c
+71
-17
drivers/net/tg3.h
drivers/net/tg3.h
+1
-0
include/asm-sparc64/pbm.h
include/asm-sparc64/pbm.h
+1
-0
No files found.
arch/sparc64/defconfig
View file @
13deaa5a
...
@@ -718,6 +718,15 @@ CONFIG_HAMACHI=m
...
@@ -718,6 +718,15 @@ CONFIG_HAMACHI=m
CONFIG_YELLOWFIN=m
CONFIG_YELLOWFIN=m
CONFIG_R8169=m
CONFIG_R8169=m
CONFIG_SK98LIN=m
CONFIG_SK98LIN=m
CONFIG_CONFIG_SK98LIN_T1=y
CONFIG_CONFIG_SK98LIN_T2=y
CONFIG_CONFIG_SK98LIN_T3=y
CONFIG_CONFIG_SK98LIN_T4=y
CONFIG_CONFIG_SK98LIN_T5=y
CONFIG_CONFIG_SK98LIN_T6=y
CONFIG_CONFIG_SK98LIN_T7=y
CONFIG_CONFIG_SK98LIN_T8=y
CONFIG_CONFIG_SK98LIN_T9=y
CONFIG_TIGON3=m
CONFIG_TIGON3=m
#
#
...
@@ -999,6 +1008,7 @@ CONFIG_I2C_ALI15X3=m
...
@@ -999,6 +1008,7 @@ CONFIG_I2C_ALI15X3=m
CONFIG_I2C_AMD756=m
CONFIG_I2C_AMD756=m
CONFIG_I2C_AMD8111=m
CONFIG_I2C_AMD8111=m
CONFIG_I2C_I801=m
CONFIG_I2C_I801=m
CONFIG_I2C_NFORCE2=m
CONFIG_I2C_PIIX4=m
CONFIG_I2C_PIIX4=m
CONFIG_I2C_SIS96X=m
CONFIG_I2C_SIS96X=m
CONFIG_I2C_VIAPRO=m
CONFIG_I2C_VIAPRO=m
...
@@ -1543,6 +1553,7 @@ CONFIG_HAVE_DEC_LOCK=y
...
@@ -1543,6 +1553,7 @@ CONFIG_HAVE_DEC_LOCK=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_DEBUG_DCFLUSH is not set
# CONFIG_DEBUG_DCFLUSH is not set
# CONFIG_DEBUG_INFO is not set
# CONFIG_STACK_DEBUG is not set
# CONFIG_STACK_DEBUG is not set
#
#
...
...
arch/sparc64/kernel/pci_schizo.c
View file @
13deaa5a
...
@@ -333,7 +333,7 @@ static unsigned int __init schizo_irq_build(struct pci_pbm_info *pbm,
...
@@ -333,7 +333,7 @@ static unsigned int __init schizo_irq_build(struct pci_pbm_info *pbm,
struct
ino_bucket
*
bucket
;
struct
ino_bucket
*
bucket
;
unsigned
long
imap
,
iclr
;
unsigned
long
imap
,
iclr
;
unsigned
long
imap_off
,
iclr_off
;
unsigned
long
imap_off
,
iclr_off
;
int
pil
;
int
pil
,
ign_fixup
;
ino
&=
PCI_IRQ_INO
;
ino
&=
PCI_IRQ_INO
;
imap_off
=
schizo_imap_offset
(
ino
);
imap_off
=
schizo_imap_offset
(
ino
);
...
@@ -356,8 +356,17 @@ static unsigned int __init schizo_irq_build(struct pci_pbm_info *pbm,
...
@@ -356,8 +356,17 @@ static unsigned int __init schizo_irq_build(struct pci_pbm_info *pbm,
* there is only one IMAP register for each PCI slot even
* there is only one IMAP register for each PCI slot even
* though four different INOs can be generated by each
* though four different INOs can be generated by each
* PCI slot.
* PCI slot.
*
* But, for JBUS variants (essentially, Tomatillo), we have
* to fixup the lowest bit of the interrupt group number.
*/
*/
bucket
=
__bucket
(
build_irq
(
pil
,
0
,
iclr
,
imap
));
ign_fixup
=
0
;
if
(
pbm
->
chip_type
==
PBM_CHIP_TYPE_TOMATILLO
)
{
if
(
pbm
->
portid
&
1
)
ign_fixup
=
(
1
<<
6
);
}
bucket
=
__bucket
(
build_irq
(
pil
,
ign_fixup
,
iclr
,
imap
));
bucket
->
flags
|=
IBF_PCI
;
bucket
->
flags
|=
IBF_PCI
;
return
__irq
(
bucket
);
return
__irq
(
bucket
);
...
@@ -1063,6 +1072,20 @@ static irqreturn_t schizo_safarierr_intr(int irq, void *dev_id, struct pt_regs *
...
@@ -1063,6 +1072,20 @@ static irqreturn_t schizo_safarierr_intr(int irq, void *dev_id, struct pt_regs *
#define SCHIZO_PCICTRL_ARB_S (0x3fUL << 0UL)
/* Safari */
#define SCHIZO_PCICTRL_ARB_S (0x3fUL << 0UL)
/* Safari */
#define SCHIZO_PCICTRL_ARB_T (0xffUL << 0UL)
/* Tomatillo */
#define SCHIZO_PCICTRL_ARB_T (0xffUL << 0UL)
/* Tomatillo */
struct
pci_pbm_info
*
pbm_for_ino
(
struct
pci_controller_info
*
p
,
u32
ino
)
{
ino
&=
IMAP_INO
;
if
(
p
->
pbm_A
.
ino_bitmap
&
(
1UL
<<
ino
))
return
&
p
->
pbm_A
;
if
(
p
->
pbm_B
.
ino_bitmap
&
(
1UL
<<
ino
))
return
&
p
->
pbm_B
;
prom_printf
(
"TOMATILLO%d: No entry in ino bitmap for %d
\n
"
,
p
->
index
,
ino
);
prom_halt
();
/* NOTREACHED */
return
NULL
;
}
/* How the Tomatillo IRQs are routed around is pure guesswork here.
/* How the Tomatillo IRQs are routed around is pure guesswork here.
*
*
* All the Tomatillo devices I see in prtconf dumps seem to have only
* All the Tomatillo devices I see in prtconf dumps seem to have only
...
@@ -1082,18 +1105,15 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
...
@@ -1082,18 +1105,15 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
struct
pci_pbm_info
*
pbm
;
struct
pci_pbm_info
*
pbm
;
unsigned
int
irq
;
unsigned
int
irq
;
struct
ino_bucket
*
bucket
;
struct
ino_bucket
*
bucket
;
u64
tmp
,
err_mask
;
u64
tmp
,
err_mask
,
err_no_mask
;
int
is_pbm_a
;
pbm
=
&
p
->
pbm_B
;
is_pbm_a
=
0
;
/* Build IRQs and register handlers. */
/* Build IRQs and register handlers. */
pbm
=
pbm_for_ino
(
p
,
SCHIZO_UE_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_UE_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_UE_INO
);
if
(
request_irq
(
irq
,
schizo_ue_intr
,
if
(
request_irq
(
irq
,
schizo_ue_intr
,
SA_SHIRQ
,
"TOMATILLO UE"
,
p
)
<
0
)
{
SA_SHIRQ
,
"TOMATILLO UE"
,
p
)
<
0
)
{
prom_printf
(
"
TOMATILLO%d
: Cannot register UE interrupt.
\n
"
,
prom_printf
(
"
%s
: Cannot register UE interrupt.
\n
"
,
p
->
index
);
p
bm
->
name
);
prom_halt
();
prom_halt
();
}
}
bucket
=
__bucket
(
irq
);
bucket
=
__bucket
(
irq
);
...
@@ -1101,11 +1121,12 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
...
@@ -1101,11 +1121,12 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_UE_INO
)
+
4
));
schizo_imap_offset
(
SCHIZO_UE_INO
)
+
4
));
pbm
=
pbm_for_ino
(
p
,
SCHIZO_CE_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_CE_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_CE_INO
);
if
(
request_irq
(
irq
,
schizo_ce_intr
,
if
(
request_irq
(
irq
,
schizo_ce_intr
,
SA_SHIRQ
,
"TOMATILLO CE"
,
p
)
<
0
)
{
SA_SHIRQ
,
"TOMATILLO CE"
,
p
)
<
0
)
{
prom_printf
(
"
TOMATILLO%d
: Cannot register CE interrupt.
\n
"
,
prom_printf
(
"
%s
: Cannot register CE interrupt.
\n
"
,
p
->
index
);
p
bm
->
name
);
prom_halt
();
prom_halt
();
}
}
bucket
=
__bucket
(
irq
);
bucket
=
__bucket
(
irq
);
...
@@ -1113,14 +1134,12 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
...
@@ -1113,14 +1134,12 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_CE_INO
)
+
4
));
schizo_imap_offset
(
SCHIZO_CE_INO
)
+
4
));
pbm
=
&
p
->
pbm_A
;
pbm
=
pbm_for_ino
(
p
,
SCHIZO_PCIERR_A_INO
);
is_pbm_a
=
1
;
irq
=
schizo_irq_build
(
pbm
,
NULL
,
((
pbm
->
portid
<<
6
)
|
irq
=
schizo_irq_build
(
pbm
,
NULL
,
((
pbm
->
portid
<<
6
)
|
SCHIZO_PCIERR_A_INO
));
SCHIZO_PCIERR_A_INO
));
if
(
request_irq
(
irq
,
schizo_pcierr_intr
,
if
(
request_irq
(
irq
,
schizo_pcierr_intr
,
SA_SHIRQ
,
"TOMATILLO PCIERR"
,
pbm
)
<
0
)
{
SA_SHIRQ
,
"TOMATILLO PCIERR"
,
pbm
)
<
0
)
{
prom_printf
(
"%s: Cannot register PciERR interrupt.
\n
"
,
prom_printf
(
"%s: Cannot register P
BM A P
ciERR interrupt.
\n
"
,
pbm
->
name
);
pbm
->
name
);
prom_halt
();
prom_halt
();
}
}
...
@@ -1129,14 +1148,12 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
...
@@ -1129,14 +1148,12 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_PCIERR_A_INO
)
+
4
));
schizo_imap_offset
(
SCHIZO_PCIERR_A_INO
)
+
4
));
pbm
=
&
p
->
pbm_B
;
pbm
=
pbm_for_ino
(
p
,
SCHIZO_PCIERR_B_INO
);
is_pbm_a
=
0
;
irq
=
schizo_irq_build
(
pbm
,
NULL
,
((
pbm
->
portid
<<
6
)
|
irq
=
schizo_irq_build
(
pbm
,
NULL
,
((
pbm
->
portid
<<
6
)
|
SCHIZO_PCIERR_B_INO
));
SCHIZO_PCIERR_B_INO
));
if
(
request_irq
(
irq
,
schizo_pcierr_intr
,
if
(
request_irq
(
irq
,
schizo_pcierr_intr
,
SA_SHIRQ
,
"TOMATILLO PCIERR"
,
pbm
)
<
0
)
{
SA_SHIRQ
,
"TOMATILLO PCIERR"
,
pbm
)
<
0
)
{
prom_printf
(
"%s: Cannot register PciERR interrupt.
\n
"
,
prom_printf
(
"%s: Cannot register P
BM B P
ciERR interrupt.
\n
"
,
pbm
->
name
);
pbm
->
name
);
prom_halt
();
prom_halt
();
}
}
...
@@ -1145,6 +1162,7 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
...
@@ -1145,6 +1162,7 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_PCIERR_B_INO
)
+
4
));
schizo_imap_offset
(
SCHIZO_PCIERR_B_INO
)
+
4
));
pbm
=
pbm_for_ino
(
p
,
SCHIZO_SERR_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_SERR_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_SERR_INO
);
if
(
request_irq
(
irq
,
schizo_safarierr_intr
,
if
(
request_irq
(
irq
,
schizo_safarierr_intr
,
SA_SHIRQ
,
"TOMATILLO SERR"
,
p
)
<
0
)
{
SA_SHIRQ
,
"TOMATILLO SERR"
,
p
)
<
0
)
{
...
@@ -1174,16 +1192,19 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
...
@@ -1174,16 +1192,19 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
err_mask
=
(
SCHIZO_PCICTRL_BUS_UNUS
|
err_mask
=
(
SCHIZO_PCICTRL_BUS_UNUS
|
SCHIZO_PCICTRL_TTO_ERR
|
SCHIZO_PCICTRL_TTO_ERR
|
SCHIZO_PCICTRL_RTRY_ERR
|
SCHIZO_PCICTRL_RTRY_ERR
|
SCHIZO_PCICTRL_DTO_ERR
|
SCHIZO_PCICTRL_SERR
|
SCHIZO_PCICTRL_SERR
|
SCHIZO_PCICTRL_EEN
);
SCHIZO_PCICTRL_EEN
);
err_no_mask
=
SCHIZO_PCICTRL_DTO_ERR
;
tmp
=
schizo_read
(
p
->
pbm_A
.
pbm_regs
+
SCHIZO_PCI_CTRL
);
tmp
=
schizo_read
(
p
->
pbm_A
.
pbm_regs
+
SCHIZO_PCI_CTRL
);
tmp
|=
err_mask
;
tmp
|=
err_mask
;
tmp
&=
~
err_no_mask
;
schizo_write
(
p
->
pbm_A
.
pbm_regs
+
SCHIZO_PCI_CTRL
,
tmp
);
schizo_write
(
p
->
pbm_A
.
pbm_regs
+
SCHIZO_PCI_CTRL
,
tmp
);
tmp
=
schizo_read
(
p
->
pbm_B
.
pbm_regs
+
SCHIZO_PCI_CTRL
);
tmp
=
schizo_read
(
p
->
pbm_B
.
pbm_regs
+
SCHIZO_PCI_CTRL
);
tmp
|=
err_mask
;
tmp
|=
err_mask
;
tmp
&=
~
err_no_mask
;
schizo_write
(
p
->
pbm_B
.
pbm_regs
+
SCHIZO_PCI_CTRL
,
tmp
);
schizo_write
(
p
->
pbm_B
.
pbm_regs
+
SCHIZO_PCI_CTRL
,
tmp
);
err_mask
=
(
SCHIZO_PCIAFSR_PMA
|
SCHIZO_PCIAFSR_PTA
|
err_mask
=
(
SCHIZO_PCIAFSR_PMA
|
SCHIZO_PCIAFSR_PTA
|
...
@@ -1219,70 +1240,74 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
...
@@ -1219,70 +1240,74 @@ static void __init tomatillo_register_error_handlers(struct pci_controller_info
static
void
__init
schizo_register_error_handlers
(
struct
pci_controller_info
*
p
)
static
void
__init
schizo_register_error_handlers
(
struct
pci_controller_info
*
p
)
{
{
struct
pci_pbm_info
*
pbm_a
=
&
p
->
pbm_A
;
struct
pci_pbm_info
*
pbm
;
struct
pci_pbm_info
*
pbm_b
=
&
p
->
pbm_B
;
unsigned
int
irq
;
unsigned
int
irq
;
struct
ino_bucket
*
bucket
;
struct
ino_bucket
*
bucket
;
u64
tmp
,
err_mask
;
u64
tmp
,
err_mask
,
err_no_mask
;
/* Build IRQs and register handlers. */
/* Build IRQs and register handlers. */
irq
=
schizo_irq_build
(
pbm_b
,
NULL
,
(
pbm_b
->
portid
<<
6
)
|
SCHIZO_UE_INO
);
pbm
=
pbm_for_ino
(
p
,
SCHIZO_UE_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_UE_INO
);
if
(
request_irq
(
irq
,
schizo_ue_intr
,
if
(
request_irq
(
irq
,
schizo_ue_intr
,
SA_SHIRQ
,
"SCHIZO UE"
,
p
)
<
0
)
{
SA_SHIRQ
,
"SCHIZO UE"
,
p
)
<
0
)
{
prom_printf
(
"
SCHIZO%d
: Cannot register UE interrupt.
\n
"
,
prom_printf
(
"
%s
: Cannot register UE interrupt.
\n
"
,
p
->
index
);
p
bm
->
name
);
prom_halt
();
prom_halt
();
}
}
bucket
=
__bucket
(
irq
);
bucket
=
__bucket
(
irq
);
tmp
=
readl
(
bucket
->
imap
);
tmp
=
readl
(
bucket
->
imap
);
upa_writel
(
tmp
,
(
pbm
_b
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_UE_INO
)
+
4
));
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_UE_INO
)
+
4
));
irq
=
schizo_irq_build
(
pbm_b
,
NULL
,
(
pbm_b
->
portid
<<
6
)
|
SCHIZO_CE_INO
);
pbm
=
pbm_for_ino
(
p
,
SCHIZO_CE_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_CE_INO
);
if
(
request_irq
(
irq
,
schizo_ce_intr
,
if
(
request_irq
(
irq
,
schizo_ce_intr
,
SA_SHIRQ
,
"SCHIZO CE"
,
p
)
<
0
)
{
SA_SHIRQ
,
"SCHIZO CE"
,
p
)
<
0
)
{
prom_printf
(
"
SCHIZO%d
: Cannot register CE interrupt.
\n
"
,
prom_printf
(
"
%s
: Cannot register CE interrupt.
\n
"
,
p
->
index
);
p
bm
->
name
);
prom_halt
();
prom_halt
();
}
}
bucket
=
__bucket
(
irq
);
bucket
=
__bucket
(
irq
);
tmp
=
upa_readl
(
bucket
->
imap
);
tmp
=
upa_readl
(
bucket
->
imap
);
upa_writel
(
tmp
,
(
pbm
_b
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_CE_INO
)
+
4
));
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_CE_INO
)
+
4
));
irq
=
schizo_irq_build
(
pbm_a
,
NULL
,
(
pbm_a
->
portid
<<
6
)
|
SCHIZO_PCIERR_A_INO
);
pbm
=
pbm_for_ino
(
p
,
SCHIZO_PCIERR_A_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_PCIERR_A_INO
);
if
(
request_irq
(
irq
,
schizo_pcierr_intr
,
if
(
request_irq
(
irq
,
schizo_pcierr_intr
,
SA_SHIRQ
,
"SCHIZO PCIERR"
,
pbm
_a
)
<
0
)
{
SA_SHIRQ
,
"SCHIZO PCIERR"
,
pbm
)
<
0
)
{
prom_printf
(
"
SCHIZO%d(PBMA): Cannot register
PciERR interrupt.
\n
"
,
prom_printf
(
"
%s: Cannot register PBM A
PciERR interrupt.
\n
"
,
p
->
index
);
p
bm
->
name
);
prom_halt
();
prom_halt
();
}
}
bucket
=
__bucket
(
irq
);
bucket
=
__bucket
(
irq
);
tmp
=
upa_readl
(
bucket
->
imap
);
tmp
=
upa_readl
(
bucket
->
imap
);
upa_writel
(
tmp
,
(
pbm
_a
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_PCIERR_A_INO
)
+
4
));
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_PCIERR_A_INO
)
+
4
));
irq
=
schizo_irq_build
(
pbm_b
,
NULL
,
(
pbm_b
->
portid
<<
6
)
|
SCHIZO_PCIERR_B_INO
);
pbm
=
pbm_for_ino
(
p
,
SCHIZO_PCIERR_B_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_PCIERR_B_INO
);
if
(
request_irq
(
irq
,
schizo_pcierr_intr
,
if
(
request_irq
(
irq
,
schizo_pcierr_intr
,
SA_SHIRQ
,
"SCHIZO PCIERR"
,
pbm_b
)
<
0
)
{
SA_SHIRQ
,
"SCHIZO PCIERR"
,
&
p
->
pbm_B
)
<
0
)
{
prom_printf
(
"
SCHIZO%d(PBMB): Cannot register
PciERR interrupt.
\n
"
,
prom_printf
(
"
%s: Cannot register PBM B
PciERR interrupt.
\n
"
,
p
->
index
);
p
bm
->
name
);
prom_halt
();
prom_halt
();
}
}
bucket
=
__bucket
(
irq
);
bucket
=
__bucket
(
irq
);
tmp
=
upa_readl
(
bucket
->
imap
);
tmp
=
upa_readl
(
bucket
->
imap
);
upa_writel
(
tmp
,
(
pbm
_b
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_PCIERR_B_INO
)
+
4
));
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_PCIERR_B_INO
)
+
4
));
irq
=
schizo_irq_build
(
pbm_b
,
NULL
,
(
pbm_b
->
portid
<<
6
)
|
SCHIZO_SERR_INO
);
pbm
=
pbm_for_ino
(
p
,
SCHIZO_SERR_INO
);
irq
=
schizo_irq_build
(
pbm
,
NULL
,
(
pbm
->
portid
<<
6
)
|
SCHIZO_SERR_INO
);
if
(
request_irq
(
irq
,
schizo_safarierr_intr
,
if
(
request_irq
(
irq
,
schizo_safarierr_intr
,
SA_SHIRQ
,
"SCHIZO SERR"
,
p
)
<
0
)
{
SA_SHIRQ
,
"SCHIZO SERR"
,
p
)
<
0
)
{
prom_printf
(
"
SCHIZO%d(PBMB)
: Cannot register SafariERR interrupt.
\n
"
,
prom_printf
(
"
%s
: Cannot register SafariERR interrupt.
\n
"
,
p
->
index
);
p
bm
->
name
);
prom_halt
();
prom_halt
();
}
}
bucket
=
__bucket
(
irq
);
bucket
=
__bucket
(
irq
);
tmp
=
upa_readl
(
bucket
->
imap
);
tmp
=
upa_readl
(
bucket
->
imap
);
upa_writel
(
tmp
,
(
pbm
_b
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_SERR_INO
)
+
4
));
upa_writel
(
tmp
,
(
pbm
->
pbm_regs
+
schizo_imap_offset
(
SCHIZO_SERR_INO
)
+
4
));
/* Enable UE and CE interrupts for controller. */
/* Enable UE and CE interrupts for controller. */
schizo_write
(
p
bm_a
->
controller_regs
+
SCHIZO_ECC_CTRL
,
schizo_write
(
p
->
pbm_A
.
controller_regs
+
SCHIZO_ECC_CTRL
,
(
SCHIZO_ECCCTRL_EE
|
(
SCHIZO_ECCCTRL_EE
|
SCHIZO_ECCCTRL_UE
|
SCHIZO_ECCCTRL_UE
|
SCHIZO_ECCCTRL_CE
));
SCHIZO_ECCCTRL_CE
));
...
@@ -1291,20 +1316,22 @@ static void __init schizo_register_error_handlers(struct pci_controller_info *p)
...
@@ -1291,20 +1316,22 @@ static void __init schizo_register_error_handlers(struct pci_controller_info *p)
SCHIZO_PCICTRL_ESLCK
|
SCHIZO_PCICTRL_ESLCK
|
SCHIZO_PCICTRL_TTO_ERR
|
SCHIZO_PCICTRL_TTO_ERR
|
SCHIZO_PCICTRL_RTRY_ERR
|
SCHIZO_PCICTRL_RTRY_ERR
|
SCHIZO_PCICTRL_DTO_ERR
|
SCHIZO_PCICTRL_SBH_ERR
|
SCHIZO_PCICTRL_SBH_ERR
|
SCHIZO_PCICTRL_SERR
|
SCHIZO_PCICTRL_SERR
|
SCHIZO_PCICTRL_SBH_INT
|
SCHIZO_PCICTRL_SBH_INT
|
SCHIZO_PCICTRL_EEN
);
SCHIZO_PCICTRL_EEN
);
err_no_mask
=
SCHIZO_PCICTRL_DTO_ERR
;
/* Enable PCI Error interrupts and clear error
/* Enable PCI Error interrupts and clear error
* bits for each PBM.
* bits for each PBM.
*/
*/
tmp
=
schizo_read
(
p
bm_a
->
pbm_regs
+
SCHIZO_PCI_CTRL
);
tmp
=
schizo_read
(
p
->
pbm_A
.
pbm_regs
+
SCHIZO_PCI_CTRL
);
tmp
|=
err_mask
;
tmp
|=
err_mask
;
schizo_write
(
pbm_a
->
pbm_regs
+
SCHIZO_PCI_CTRL
,
tmp
);
tmp
&=
~
err_no_mask
;
schizo_write
(
p
->
pbm_A
.
pbm_regs
+
SCHIZO_PCI_CTRL
,
tmp
);
schizo_write
(
p
bm_a
->
pbm_regs
+
SCHIZO_PCI_AFSR
,
schizo_write
(
p
->
pbm_A
.
pbm_regs
+
SCHIZO_PCI_AFSR
,
(
SCHIZO_PCIAFSR_PMA
|
SCHIZO_PCIAFSR_PTA
|
(
SCHIZO_PCIAFSR_PMA
|
SCHIZO_PCIAFSR_PTA
|
SCHIZO_PCIAFSR_PRTRY
|
SCHIZO_PCIAFSR_PPERR
|
SCHIZO_PCIAFSR_PRTRY
|
SCHIZO_PCIAFSR_PPERR
|
SCHIZO_PCIAFSR_PTTO
|
SCHIZO_PCIAFSR_PUNUS
|
SCHIZO_PCIAFSR_PTTO
|
SCHIZO_PCIAFSR_PUNUS
|
...
@@ -1312,11 +1339,12 @@ static void __init schizo_register_error_handlers(struct pci_controller_info *p)
...
@@ -1312,11 +1339,12 @@ static void __init schizo_register_error_handlers(struct pci_controller_info *p)
SCHIZO_PCIAFSR_SRTRY
|
SCHIZO_PCIAFSR_SPERR
|
SCHIZO_PCIAFSR_SRTRY
|
SCHIZO_PCIAFSR_SPERR
|
SCHIZO_PCIAFSR_STTO
|
SCHIZO_PCIAFSR_SUNUS
));
SCHIZO_PCIAFSR_STTO
|
SCHIZO_PCIAFSR_SUNUS
));
tmp
=
schizo_read
(
p
bm_b
->
pbm_regs
+
SCHIZO_PCI_CTRL
);
tmp
=
schizo_read
(
p
->
pbm_B
.
pbm_regs
+
SCHIZO_PCI_CTRL
);
tmp
|=
err_mask
;
tmp
|=
err_mask
;
schizo_write
(
pbm_b
->
pbm_regs
+
SCHIZO_PCI_CTRL
,
tmp
);
tmp
&=
~
err_no_mask
;
schizo_write
(
p
->
pbm_B
.
pbm_regs
+
SCHIZO_PCI_CTRL
,
tmp
);
schizo_write
(
p
bm_b
->
pbm_regs
+
SCHIZO_PCI_AFSR
,
schizo_write
(
p
->
pbm_B
.
pbm_regs
+
SCHIZO_PCI_AFSR
,
(
SCHIZO_PCIAFSR_PMA
|
SCHIZO_PCIAFSR_PTA
|
(
SCHIZO_PCIAFSR_PMA
|
SCHIZO_PCIAFSR_PTA
|
SCHIZO_PCIAFSR_PRTRY
|
SCHIZO_PCIAFSR_PPERR
|
SCHIZO_PCIAFSR_PRTRY
|
SCHIZO_PCIAFSR_PPERR
|
SCHIZO_PCIAFSR_PTTO
|
SCHIZO_PCIAFSR_PUNUS
|
SCHIZO_PCIAFSR_PTTO
|
SCHIZO_PCIAFSR_PUNUS
|
...
@@ -1349,10 +1377,10 @@ static void __init schizo_register_error_handlers(struct pci_controller_info *p)
...
@@ -1349,10 +1377,10 @@ static void __init schizo_register_error_handlers(struct pci_controller_info *p)
BUS_ERROR_CPU0PS
|
BUS_ERROR_CPU0PB
);
BUS_ERROR_CPU0PS
|
BUS_ERROR_CPU0PB
);
#endif
#endif
schizo_write
(
p
bm_a
->
controller_regs
+
SCHIZO_SAFARI_ERRCTRL
,
schizo_write
(
p
->
pbm_A
.
controller_regs
+
SCHIZO_SAFARI_ERRCTRL
,
(
SCHIZO_SAFERRCTRL_EN
|
err_mask
));
(
SCHIZO_SAFERRCTRL_EN
|
err_mask
));
schizo_write
(
p
bm_a
->
controller_regs
+
SCHIZO_SAFARI_IRQCTRL
,
schizo_write
(
p
->
pbm_A
.
controller_regs
+
SCHIZO_SAFARI_IRQCTRL
,
(
SCHIZO_SAFIRQCTRL_EN
|
(
BUS_ERROR_UNMAP
)));
(
SCHIZO_SAFIRQCTRL_EN
|
(
BUS_ERROR_UNMAP
)));
}
}
...
@@ -1795,11 +1823,12 @@ static void __init schizo_pbm_hw_init(struct pci_pbm_info *pbm)
...
@@ -1795,11 +1823,12 @@ static void __init schizo_pbm_hw_init(struct pci_pbm_info *pbm)
else
else
tmp
|=
0xff
;
tmp
|=
0xff
;
tmp
&=
~
SCHIZO_PCICTRL_PTO
;
if
(
pbm
->
chip_type
==
PBM_CHIP_TYPE_TOMATILLO
&&
if
(
pbm
->
chip_type
==
PBM_CHIP_TYPE_TOMATILLO
&&
pbm
->
chip_version
==
0x2
)
{
pbm
->
chip_version
==
0x2
)
tmp
&=
~
SCHIZO_PCICTRL_PTO
;
tmp
|=
0x3UL
<<
SCHIZO_PCICTRL_PTO_SHIFT
;
tmp
|=
0x3UL
<<
SCHIZO_PCICTRL_PTO_SHIFT
;
}
else
tmp
|=
0x1UL
<<
SCHIZO_PCICTRL_PTO_SHIFT
;
if
(
!
prom_getbool
(
pbm
->
prom_node
,
"no-bus-parking"
))
if
(
!
prom_getbool
(
pbm
->
prom_node
,
"no-bus-parking"
))
tmp
|=
SCHIZO_PCICTRL_PARK
;
tmp
|=
SCHIZO_PCICTRL_PARK
;
...
@@ -1838,6 +1867,7 @@ static void __init schizo_pbm_init(struct pci_controller_info *p,
...
@@ -1838,6 +1867,7 @@ static void __init schizo_pbm_init(struct pci_controller_info *p,
unsigned
int
busrange
[
2
];
unsigned
int
busrange
[
2
];
struct
pci_pbm_info
*
pbm
;
struct
pci_pbm_info
*
pbm
;
const
char
*
chipset_name
;
const
char
*
chipset_name
;
u32
ino_bitmap
[
2
];
int
is_pbm_a
;
int
is_pbm_a
;
int
err
;
int
err
;
...
@@ -1951,6 +1981,16 @@ static void __init schizo_pbm_init(struct pci_controller_info *p,
...
@@ -1951,6 +1981,16 @@ static void __init schizo_pbm_init(struct pci_controller_info *p,
memset
(
&
pbm
->
pbm_intmask
,
0
,
sizeof
(
pbm
->
pbm_intmask
));
memset
(
&
pbm
->
pbm_intmask
,
0
,
sizeof
(
pbm
->
pbm_intmask
));
}
}
err
=
prom_getproperty
(
prom_node
,
"ino-bitmap"
,
(
char
*
)
&
ino_bitmap
[
0
],
sizeof
(
ino_bitmap
));
if
(
err
==
0
||
err
==
-
1
)
{
prom_printf
(
"%s: Fatal error, no ino-bitmap.
\n
"
,
pbm
->
name
);
prom_halt
();
}
pbm
->
ino_bitmap
=
(((
u64
)
ino_bitmap
[
1
]
<<
32UL
)
|
((
u64
)
ino_bitmap
[
0
]
<<
0UL
));
err
=
prom_getproperty
(
prom_node
,
"bus-range"
,
err
=
prom_getproperty
(
prom_node
,
"bus-range"
,
(
char
*
)
&
busrange
[
0
],
(
char
*
)
&
busrange
[
0
],
sizeof
(
busrange
));
sizeof
(
busrange
));
...
...
drivers/net/tg3.c
View file @
13deaa5a
/*
/*
* tg3.c: Broadcom Tigon3 ethernet driver.
* tg3.c: Broadcom Tigon3 ethernet driver.
*
*
* Copyright (C) 2001, 2002 David S. Miller (davem@redhat.com)
* Copyright (C) 2001, 2002
, 2003
David S. Miller (davem@redhat.com)
* Copyright (C) 2001, 2002 Jeff Garzik (jgarzik@pobox.com)
* Copyright (C) 2001, 2002 Jeff Garzik (jgarzik@pobox.com)
*/
*/
...
@@ -57,8 +57,8 @@
...
@@ -57,8 +57,8 @@
#define DRV_MODULE_NAME "tg3"
#define DRV_MODULE_NAME "tg3"
#define PFX DRV_MODULE_NAME ": "
#define PFX DRV_MODULE_NAME ": "
#define DRV_MODULE_VERSION "1.
7
"
#define DRV_MODULE_VERSION "1.
8
"
#define DRV_MODULE_RELDATE "
July 23
, 2003"
#define DRV_MODULE_RELDATE "
August 1
, 2003"
#define TG3_DEF_MAC_MODE 0
#define TG3_DEF_MAC_MODE 0
#define TG3_DEF_RX_MODE 0
#define TG3_DEF_RX_MODE 0
...
@@ -3103,18 +3103,20 @@ static void tg3_chip_reset(struct tg3 *tp)
...
@@ -3103,18 +3103,20 @@ static void tg3_chip_reset(struct tg3 *tp)
u32
val
;
u32
val
;
u32
flags_save
;
u32
flags_save
;
/* Force NVRAM to settle.
if
(
!
(
tp
->
tg3_flags2
&
TG3_FLG2_SUN_5704
))
{
* This deals with a chip bug which can result in EEPROM
/* Force NVRAM to settle.
* corruption.
* This deals with a chip bug which can result in EEPROM
*/
* corruption.
if
(
tp
->
tg3_flags
&
TG3_FLAG_NVRAM
)
{
*/
int
i
;
if
(
tp
->
tg3_flags
&
TG3_FLAG_NVRAM
)
{
int
i
;
tw32
(
NVRAM_SWARB
,
SWARB_REQ_SET1
);
tw32
(
NVRAM_SWARB
,
SWARB_REQ_SET1
);
for
(
i
=
0
;
i
<
100000
;
i
++
)
{
for
(
i
=
0
;
i
<
100000
;
i
++
)
{
if
(
tr32
(
NVRAM_SWARB
)
&
SWARB_GNT1
)
if
(
tr32
(
NVRAM_SWARB
)
&
SWARB_GNT1
)
break
;
break
;
udelay
(
10
);
udelay
(
10
);
}
}
}
}
}
...
@@ -3207,7 +3209,8 @@ static int tg3_halt(struct tg3 *tp)
...
@@ -3207,7 +3209,8 @@ static int tg3_halt(struct tg3 *tp)
udelay
(
10
);
udelay
(
10
);
}
}
if
(
i
>=
100000
)
{
if
(
i
>=
100000
&&
!
(
tp
->
tg3_flags2
&
TG3_FLG2_SUN_5704
))
{
printk
(
KERN_ERR
PFX
"tg3_halt timed out for %s, "
printk
(
KERN_ERR
PFX
"tg3_halt timed out for %s, "
"firmware will not restart magic=%08x
\n
"
,
"firmware will not restart magic=%08x
\n
"
,
tp
->
dev
->
name
,
val
);
tp
->
dev
->
name
,
val
);
...
@@ -3951,7 +3954,8 @@ static int tg3_reset_hw(struct tg3 *tp)
...
@@ -3951,7 +3954,8 @@ static int tg3_reset_hw(struct tg3 *tp)
break
;
break
;
udelay
(
10
);
udelay
(
10
);
}
}
if
(
i
>=
100000
)
{
if
(
i
>=
100000
&&
!
(
tp
->
tg3_flags2
&
TG3_FLG2_SUN_5704
))
{
printk
(
KERN_ERR
PFX
"tg3_reset_hw timed out for %s, "
printk
(
KERN_ERR
PFX
"tg3_reset_hw timed out for %s, "
"firmware will not restart magic=%08x
\n
"
,
"firmware will not restart magic=%08x
\n
"
,
tp
->
dev
->
name
,
val
);
tp
->
dev
->
name
,
val
);
...
@@ -5569,6 +5573,9 @@ static void __devinit tg3_nvram_init(struct tg3 *tp)
...
@@ -5569,6 +5573,9 @@ static void __devinit tg3_nvram_init(struct tg3 *tp)
{
{
int
j
;
int
j
;
if
(
tp
->
tg3_flags2
&
TG3_FLG2_SUN_5704
)
return
;
tw32
(
GRC_EEPROM_ADDR
,
tw32
(
GRC_EEPROM_ADDR
,
(
EEPROM_ADDR_FSM_RESET
|
(
EEPROM_ADDR_FSM_RESET
|
(
EEPROM_DEFAULT_CLOCK_PERIOD
<<
(
EEPROM_DEFAULT_CLOCK_PERIOD
<<
...
@@ -5641,6 +5648,11 @@ static int __devinit tg3_nvram_read(struct tg3 *tp,
...
@@ -5641,6 +5648,11 @@ static int __devinit tg3_nvram_read(struct tg3 *tp,
{
{
int
i
,
saw_done_clear
;
int
i
,
saw_done_clear
;
if
(
tp
->
tg3_flags2
&
TG3_FLG2_SUN_5704
)
{
printk
(
KERN_ERR
PFX
"Attempt to do nvram_read on Sun 5704
\n
"
);
return
-
EINVAL
;
}
if
(
!
(
tp
->
tg3_flags
&
TG3_FLAG_NVRAM
))
if
(
!
(
tp
->
tg3_flags
&
TG3_FLAG_NVRAM
))
return
tg3_nvram_read_using_eeprom
(
tp
,
offset
,
val
);
return
tg3_nvram_read_using_eeprom
(
tp
,
offset
,
val
);
...
@@ -5909,6 +5921,14 @@ static void __devinit tg3_read_partno(struct tg3 *tp)
...
@@ -5909,6 +5921,14 @@ static void __devinit tg3_read_partno(struct tg3 *tp)
unsigned
char
vpd_data
[
256
];
unsigned
char
vpd_data
[
256
];
int
i
;
int
i
;
if
(
tp
->
tg3_flags2
&
TG3_FLG2_SUN_5704
)
{
/* Sun decided not to put the necessary bits in the
* NVRAM of their onboard tg3 parts :(
*/
strcpy
(
tp
->
board_part_number
,
"Sun 5704"
);
return
;
}
for
(
i
=
0
;
i
<
256
;
i
+=
4
)
{
for
(
i
=
0
;
i
<
256
;
i
+=
4
)
{
u32
tmp
;
u32
tmp
;
...
@@ -5965,6 +5985,34 @@ static void __devinit tg3_read_partno(struct tg3 *tp)
...
@@ -5965,6 +5985,34 @@ static void __devinit tg3_read_partno(struct tg3 *tp)
strcpy
(
tp
->
board_part_number
,
"none"
);
strcpy
(
tp
->
board_part_number
,
"none"
);
}
}
#ifdef CONFIG_SPARC64
static
int
__devinit
tg3_is_sun_5704
(
struct
tg3
*
tp
)
{
struct
pci_dev
*
pdev
=
tp
->
pdev
;
struct
pcidev_cookie
*
pcp
=
pdev
->
sysdata
;
if
(
pcp
!=
NULL
)
{
int
node
=
pcp
->
prom_node
;
u32
venid
,
devid
;
int
err
;
err
=
prom_getproperty
(
node
,
"subsystem-vendor-id"
,
(
char
*
)
&
venid
,
sizeof
(
venid
));
if
(
err
==
0
||
err
==
-
1
)
return
0
;
err
=
prom_getproperty
(
node
,
"subsystem-id"
,
(
char
*
)
&
devid
,
sizeof
(
devid
));
if
(
err
==
0
||
err
==
-
1
)
return
0
;
if
(
venid
==
PCI_VENDOR_ID_SUN
&&
devid
==
PCI_DEVICE_ID_TIGON3_5704
)
return
1
;
}
return
0
;
}
#endif
static
int
__devinit
tg3_get_invariants
(
struct
tg3
*
tp
)
static
int
__devinit
tg3_get_invariants
(
struct
tg3
*
tp
)
{
{
u32
misc_ctrl_reg
;
u32
misc_ctrl_reg
;
...
@@ -5973,6 +6021,11 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
...
@@ -5973,6 +6021,11 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
u16
pci_cmd
;
u16
pci_cmd
;
int
err
;
int
err
;
#ifdef CONFIG_SPARC64
if
(
tg3_is_sun_5704
(
tp
))
tp
->
tg3_flags2
|=
TG3_FLG2_SUN_5704
;
#endif
/* If we have an AMD 762 or Intel ICH/ICH0 chipset, write
/* If we have an AMD 762 or Intel ICH/ICH0 chipset, write
* reordering to the mailbox registers done by the host
* reordering to the mailbox registers done by the host
* controller can cause major troubles. We read back from
* controller can cause major troubles. We read back from
...
@@ -6337,7 +6390,8 @@ static int __devinit tg3_get_device_address(struct tg3 *tp)
...
@@ -6337,7 +6390,8 @@ static int __devinit tg3_get_device_address(struct tg3 *tp)
dev
->
dev_addr
[
5
]
=
(
lo
>>
0
)
&
0xff
;
dev
->
dev_addr
[
5
]
=
(
lo
>>
0
)
&
0xff
;
}
}
/* Next, try NVRAM. */
/* Next, try NVRAM. */
else
if
(
!
tg3_nvram_read
(
tp
,
mac_offset
+
0
,
&
hi
)
&&
else
if
(
!
(
tp
->
tg3_flags
&
TG3_FLG2_SUN_5704
)
&&
!
tg3_nvram_read
(
tp
,
mac_offset
+
0
,
&
hi
)
&&
!
tg3_nvram_read
(
tp
,
mac_offset
+
4
,
&
lo
))
{
!
tg3_nvram_read
(
tp
,
mac_offset
+
4
,
&
lo
))
{
dev
->
dev_addr
[
0
]
=
((
hi
>>
16
)
&
0xff
);
dev
->
dev_addr
[
0
]
=
((
hi
>>
16
)
&
0xff
);
dev
->
dev_addr
[
1
]
=
((
hi
>>
24
)
&
0xff
);
dev
->
dev_addr
[
1
]
=
((
hi
>>
24
)
&
0xff
);
...
...
drivers/net/tg3.h
View file @
13deaa5a
...
@@ -1823,6 +1823,7 @@ struct tg3 {
...
@@ -1823,6 +1823,7 @@ struct tg3 {
#define TG3_FLAG_INIT_COMPLETE 0x80000000
#define TG3_FLAG_INIT_COMPLETE 0x80000000
u32
tg3_flags2
;
u32
tg3_flags2
;
#define TG3_FLG2_RESTART_TIMER 0x00000001
#define TG3_FLG2_RESTART_TIMER 0x00000001
#define TG3_FLG2_SUN_5704 0x00000002
u32
split_mode_max_reqs
;
u32
split_mode_max_reqs
;
#define SPLIT_MODE_5704_MAX_REQ 3
#define SPLIT_MODE_5704_MAX_REQ 3
...
...
include/asm-sparc64/pbm.h
View file @
13deaa5a
...
@@ -158,6 +158,7 @@ struct pci_pbm_info {
...
@@ -158,6 +158,7 @@ struct pci_pbm_info {
struct
linux_prom_pci_intmap
pbm_intmap
[
PROM_PCIIMAP_MAX
];
struct
linux_prom_pci_intmap
pbm_intmap
[
PROM_PCIIMAP_MAX
];
int
num_pbm_intmap
;
int
num_pbm_intmap
;
struct
linux_prom_pci_intmask
pbm_intmask
;
struct
linux_prom_pci_intmask
pbm_intmask
;
u64
ino_bitmap
;
/* PBM I/O and Memory space resources. */
/* PBM I/O and Memory space resources. */
struct
resource
io_space
;
struct
resource
io_space
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment