Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
1fc2b165
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1fc2b165
编写于
11月 22, 2008
作者:
G
Graeme Russ
提交者:
Wolfgang Denk
12月 10, 2008
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Moved sc520 PCI definitions to stand-alone file
Signed Off By: Graeme Russ <graeme.russ@gmail.com>
上级
1f5070c0
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
49 addition
and
22 deletion
+49
-22
include/asm-i386/ic/pci.h
include/asm-i386/ic/pci.h
+49
-0
include/asm-i386/ic/sc520.h
include/asm-i386/ic/sc520.h
+0
-22
未找到文件。
include/asm-i386/ic/pci.h
0 → 100644
浏览文件 @
1fc2b165
/*
* (C) Copyright 2002
* Daniel Engstrm, Omicron Ceti AB <daniel@omicron.se>.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
#ifndef _ASM_IC_SC520_PCI_H_
#define _ASM_IC_SC520_PCI_H_ 1
/* pin number used for PCI interrupt mappings */
#define SC520_PCI_INTA 0
#define SC520_PCI_INTB 1
#define SC520_PCI_INTC 2
#define SC520_PCI_INTD 3
#define SC520_PCI_GPIRQ0 4
#define SC520_PCI_GPIRQ1 5
#define SC520_PCI_GPIRQ2 6
#define SC520_PCI_GPIRQ3 7
#define SC520_PCI_GPIRQ4 8
#define SC520_PCI_GPIRQ5 9
#define SC520_PCI_GPIRQ6 10
#define SC520_PCI_GPIRQ7 11
#define SC520_PCI_GPIRQ8 12
#define SC520_PCI_GPIRQ9 13
#define SC520_PCI_GPIRQ10 14
extern
int
sc520_pci_ints
[];
void
pci_sc520_init
(
struct
pci_controller
*
hose
);
int
pci_sc520_set_irq
(
int
pci_pin
,
int
irq
);
#endif
include/asm-i386/ic/sc520.h
浏览文件 @
1fc2b165
...
...
@@ -282,24 +282,6 @@
#define SC520_IRQ14 9
#define SC520_IRQ15 10
/* pin number used for PCI interrupt mappings */
#define SC520_PCI_INTA 0
#define SC520_PCI_INTB 1
#define SC520_PCI_INTC 2
#define SC520_PCI_INTD 3
#define SC520_PCI_GPIRQ0 4
#define SC520_PCI_GPIRQ1 5
#define SC520_PCI_GPIRQ2 6
#define SC520_PCI_GPIRQ3 7
#define SC520_PCI_GPIRQ4 8
#define SC520_PCI_GPIRQ5 9
#define SC520_PCI_GPIRQ6 10
#define SC520_PCI_GPIRQ7 11
#define SC520_PCI_GPIRQ8 12
#define SC520_PCI_GPIRQ9 13
#define SC520_PCI_GPIRQ10 14
/* utility functions */
void
write_mmcr_byte
(
u16
mmcr
,
u8
data
);
void
write_mmcr_word
(
u16
mmcr
,
u16
data
);
...
...
@@ -308,11 +290,7 @@ u8 read_mmcr_byte(u16 mmcr);
u16
read_mmcr_word
(
u16
mmcr
);
u32
read_mmcr_long
(
u16
mmcr
);
extern
int
sc520_pci_ints
[];
void
init_sc520
(
void
);
unsigned
long
init_sc520_dram
(
void
);
void
pci_sc520_init
(
struct
pci_controller
*
hose
);
int
pci_sc520_set_irq
(
int
pci_pin
,
int
irq
);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录