Subversion Repositories Kolibri OS

Rev

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

Rev 5345 Rev 6082
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
 
-
 
9
typedef struct
-
 
10
{
-
 
11
  int width;
-
 
12
  int height;
-
 
13
  int bpp;
-
 
14
  int freq;
7
typedef u32 count_t;
15
}videomode_t;
Line 8... Line 16...
8
 
16
 
9
///////////////////////////////////////////////////////////////////////////////
17
///////////////////////////////////////////////////////////////////////////////
Line 34... Line 42...
34
int    STDCALL UserFree(void *mem)__asm__("UserFree");
42
int    STDCALL UserFree(void *mem)__asm__("UserFree");
Line 35... Line 43...
35
 
43
 
Line 36... Line 44...
36
void*  STDCALL GetDisplay(void)__asm__("GetDisplay");
44
void*  STDCALL GetDisplay(void)__asm__("GetDisplay");
-
 
45
 
Line 37... Line 46...
37
 
46
u32  IMPORT  GetTimerTicks(void)__asm__("GetTimerTicks");
38
u32  IMPORT  GetTimerTicks(void)__asm__("GetTimerTicks");
47
u64  IMPORT  GetClockNs(void)__asm__("GetClockNs");
39
 
48
 
40
addr_t STDCALL AllocPage(void)__asm__("AllocPage");
49
addr_t STDCALL AllocPage(void)__asm__("AllocPage");
Line 510... Line 519...
510
static inline void __iomem *ioremap(u32 offset, size_t size)
519
static inline void __iomem *ioremap(u32 offset, size_t size)
511
{
520
{
512
    return (void __iomem*) MapIoMem(offset, size, PG_SW|PG_NOCACHE|0x100);
521
    return (void __iomem*) MapIoMem(offset, size, PG_SW|PG_NOCACHE|0x100);
513
}
522
}
Line -... Line 523...
-
 
523
 
-
 
524
static inline void __iomem *ioremap_nocache(u32 offset, size_t size)
-
 
525
{
-
 
526
    return (void __iomem*) MapIoMem(offset, size, PG_SW|PG_NOCACHE|0x100);
-
 
527
}
514
 
528
 
515
static inline void __iomem *ioremap_wc(u32 offset, size_t size)
529
static inline void __iomem *ioremap_wc(u32 offset, size_t size)
516
{
530
{
517
    return (void __iomem*) MapIoMem(offset, size, PG_SW|0x100);
531
    return (void __iomem*) MapIoMem(offset, size, PG_SW|PG_WRITEC|0x100);
Line 518... Line 532...
518
}
532
}
519
 
533
 
Line 544... Line 558...
544
static inline void vfree(void *addr)
558
static inline void vfree(void *addr)
545
{
559
{
546
    KernelFree(addr);
560
    KernelFree(addr);
547
}
561
}
Line 548... Line 562...
548
 
562
 
Line 549... Line 563...
549
static inline int power_supply_is_system_supplied(void) { return -1; }
563
static inline int power_supply_is_system_supplied(void) { return -1; };