OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-i960/] [mon960.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 *   FILE: mon960.h
3
 * AUTHOR: kma
4
 *  DESCR: mon960 calls
5
 */
6
 
7
#ifndef MON960_H
8
#define MON960_H
9
 
10
#ident "$Id: mon960.h,v 1.1 2005-12-20 11:35:39 jcastillo Exp $"
11
 
12
unsigned long mon_entry(void);
13
unsigned long get_prcbptr(void);
14
void mon960_exit(int val);
15
 
16
#ifdef CONFIG_PCI
17
typedef struct {
18
        int     bus;
19
        int     dev;
20
        int     fn;
21
} pci_dev_info;
22
 
23
/*
24
 * mon960 system calls for pci management
25
 */
26
extern int mon960_pcibios_present(void* info);
27
extern int mon960_pcibios_find_device(int vendor, int dev, int idx, void* loc);
28
extern int mon960_pcibios_find_class(int class, int idx, void* dev);
29
 
30
#define MON960_BIOS_DECL(op,sz,type)    \
31
extern int      \
32
mon960_pcibios_ ## op ## _config_ ##sz(unsigned short vec,      \
33
                                         unsigned short dev,    \
34
                                         unsigned short func,   \
35
                                         unsigned char off,     \
36
                                         type val);
37
 
38
MON960_BIOS_DECL(read,byte,unsigned char*);
39
MON960_BIOS_DECL(read,word,unsigned short*);
40
MON960_BIOS_DECL(read,dword,unsigned int*);
41
MON960_BIOS_DECL(write,byte,unsigned char);
42
MON960_BIOS_DECL(write,word,unsigned short);
43
MON960_BIOS_DECL(write,dword,unsigned int);
44
#undef MON960_BIOS_DECL
45
#endif  /* CONFIG_PCI */
46
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.