Subversion Repositories Kolibri OS

Rev

Rev 1633 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1631 serge 1
 
2
#include 
3
#include 
4
#include 
5
#include 
6
7
 
8
                              int pos, u8 *value)
9
{
10
//    raw_spin_lock_irqsave(&pci_lock, flags);
11
    *value = PciRead8(bus->number, devfn, pos);
12
//    raw_spin_unlock_irqrestore(&pci_lock, flags);
13
    return 0;
14
}
15
16
 
17
                              int pos, u16 *value)
18
{
19
    if ( pos & 1)
20
        return PCIBIOS_BAD_REGISTER_NUMBER;
21
22
 
23
    *value = PciRead16(bus->number, devfn, pos);
24
//    raw_spin_unlock_irqrestore(&pci_lock, flags);
25
    return 0;
26
}
27
28
 
29
 
30
                               int pos, u32 *value)
1633 serge 31
{
1631 serge 32
    if ( pos & 3)
33
        return PCIBIOS_BAD_REGISTER_NUMBER;
34
35
 
36
    *value = PciRead32(bus->number, devfn, pos);
37
//    raw_spin_unlock_irqrestore(&pci_lock, flags);
38
    return 0;
39
}
40