Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1362 → Rev 1363

/uspace/trunk/libc/include/as.h
31,10 → 31,14
 
#include <types.h>
#include <task.h>
#include <kernel/arch/mm/as.h>
#include <kernel/mm/as.h>
 
#define USER_ADDRESS_SPACE_SIZE_ARCH (USER_ADDRESS_SPACE_END_ARCH-USER_ADDRESS_SPACE_START_ARCH+1)
 
extern void *as_area_create(void *address, size_t size, int flags);
extern int as_area_resize(void *address, size_t size, int flags);
extern int as_area_destroy(void *address);
extern void *set_maxheapsize(size_t mhs);
 
#endif
/uspace/trunk/libc/include/io/stream.h
0,0 → 1,16
#include <libarch/types.h>
#include <unistd.h>
 
#define EMFILE -17
 
typedef int fd_t;
 
 
typedef ssize_t (*pwritefn_t)(void *,const void *,size_t);
typedef ssize_t (*preadfn_t)(void);
 
fd_t open(const char *fname,int flags);
 
 
 
 
/uspace/trunk/libc/include/ipc/services.h
37,5 → 37,6
#define SERVICE_PCI 1
#define SERVICE_FRAME_BUFFER 2
#define SERVICE_KEYBOARD 3
#define SERVICE_VIDEO 4
 
#endif
/uspace/trunk/libc/include/ipc/fb.h
0,0 → 1,60
 
 
#include <arch/types.h>
#include <types.h>
 
#ifndef __libc__FB_H__
#define __libc__FB_H__
 
#define FB_GET_VFB 1024
#define FB_PUTCHAR 1025
 
#define METHOD_WIDTH 16
#define ITEM_WIDTH 16
#define COUNT_WIDTH 16 /*Should be 8 times integer*/
 
 
struct _fb_method
{
unsigned m : METHOD_WIDTH;
unsigned item : ITEM_WIDTH;
} __attribute__ ((packed));
 
union fb_method
{
struct _fb_method m;
__native fill;
}__attribute__ ((packed));
 
struct fb_call_args
{
union fb_method method;
union
{
struct
{
unsigned count :COUNT_WIDTH;
char chars[3*sizeof(__native)-(COUNT_WIDTH>>3)];
}putchar __attribute__ ((packed));
}data ; //__attribute__ ((packed));
}__attribute__ ((packed));
 
struct fb_ipc_args
{
__native method;
__native arg1;
__native arg2;
__native arg3;
} __attribute__ ((packed));
 
union fb_args
{
struct fb_call_args fb_args;
struct fb_ipc_args ipc_args;
}__attribute__ ((packed));
 
typedef union fb_args fb_args_t;
 
#endif