Subversion Repositories Kolibri OS

Rev

Rev 7143 | Rev 9827 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7143 Rev 9057
Line 4... Line 4...
4
#include 
4
#include 
Line 5... Line 5...
5
 
5
 
6
typedef u32 addr_t;
6
typedef u32 addr_t;
Line -... Line 7...
-
 
7
typedef u32 count_t;
-
 
8
 
7
typedef u32 count_t;
9
#pragma pack(push, 1)
8
 
10
 
9
typedef struct
11
typedef struct
10
{
12
{
11
  int width;
13
  int width;
Line 22... Line 24...
22
    u32 class;
24
    u32 class;
23
    u8  devfn;
25
    u8  devfn;
24
    u8  bus;
26
    u8  bus;
25
    u8  reserved[2];
27
    u8  reserved[2];
26
    u32 owner;
28
    u32 owner;
-
 
29
};
-
 
30
 
-
 
31
typedef struct {
-
 
32
    unsigned            p00;
-
 
33
    union{
27
} __attribute__((packed));
34
        uint64_t        p04;
-
 
35
        struct {
-
 
36
            unsigned    p04dw;
-
 
37
            unsigned    p08dw;
-
 
38
        };
-
 
39
    };
-
 
40
    unsigned            p12;
-
 
41
    union {
-
 
42
        unsigned        p16;
-
 
43
        const char     *new_name;
-
 
44
        void           *bdfe;
-
 
45
        void           *buf16;
-
 
46
        const void     *cbuf16;
-
 
47
    };
-
 
48
    char                p20;
-
 
49
    const char         *p21;
-
 
50
}ksys70_t;
-
 
51
 
-
 
52
#pragma pack(pop)
Line 28... Line 53...
28
 
53
 
Line 29... Line 54...
29
///////////////////////////////////////////////////////////////////////////////
54
///////////////////////////////////////////////////////////////////////////////
30
 
55
 
Line 505... Line 530...
505
        memset(mem, 0, size);
530
        memset(mem, 0, size);
Line 506... Line 531...
506
 
531
 
507
   return mem;
532
   return mem;
Line 508... Line -...
508
};
-
 
509
 
533
};
Line -... Line 534...
-
 
534
 
-
 
535
static inline int power_supply_is_system_supplied(void) { return -1; };
-
 
536
 
-
 
537
static inline int FS_Service(ksys70_t *k, int* err){
-
 
538
    int status;
-
 
539
    __asm__ __volatile__(
-
 
540
     "call *__imp__FS_Service"
-
 
541
     :"=a" (status), "=b" (*err) 
-
 
542
     :"b" (k)
-
 
543
     :"memory"
-
 
544
    );
510
 
545
    __asm__ __volatile__ ("":::"ebx","ecx","edx","esi","edi");