/usr/include/allegro/platform/aintpsp.h is in liballegro4-dev 2:4.4.2-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | /* ______ ___ ___
* /\ _ \ /\_ \ /\_ \
* \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___
* \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\
* \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \
* \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
* \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
* /\____/
* \_/__/
*
* Internal header file for the PSP Allegro library port.
*
* By diedel.
*
* See readme.txt for copyright information.
*/
#ifndef AINTPSP_H
#define AINTPSP_H
/* For accelerated blitting support .*/
AL_FUNC(BITMAP *, psp_create_bitmap, (int color_depth, int width, int height));
AL_FUNC(int, psp_destroy_bitmap, (BITMAP *bitmap));
/* Extra bitmap info. */
#define BMP_EXTRA(bmp) ((BMP_EXTRA_INFO *)((bmp)->extra))
typedef struct BMP_EXTRA_INFO
{
int pitch;
/* For video bitmaps. */
int size;
uintptr_t hw_addr;
} BMP_EXTRA_INFO;
#define ALIGN_TO(v,n) ((v + n-1) & ~(n-1))
/* For 8 bpp support. */
AL_VAR(GFX_VTABLE, psp_vtable8);
AL_FUNC(void, psp_do_stretch_blit8, (BITMAP *source, BITMAP *dest, int source_x, int source_y, int source_width, int source_height, int dest_x, int dest_y, int dest_width, int dest_height, int masked));
/* The video bitmap actually displayed on the PSP. */
BITMAP *displayed_video_bitmap;
AL_FUNC(void, psp_draw_to_screen, (void));
/* Video memory manager stuff. */
#define VMM_NO_MEM ((uintptr_t)0)
typedef struct VRAM_HOLE
{
uintptr_t h_base;
unsigned int h_len;
struct VRAM_HOLE *h_next;
} VRAM_HOLE;
AL_FUNC(void, vmm_init, (uintptr_t base, unsigned int available_vram));
AL_FUNC(uintptr_t, vmm_alloc_mem, (unsigned int size));
AL_FUNC(void, vmm_free_mem, (uintptr_t base, unsigned int size));
/* PSP controller stuff. */
#define SAMPLING_CYCLE 0
#define SAMPLING_MODE PSP_CTRL_MODE_DIGITAL
AL_FUNC(void, _psp_init_controller, (int cycle, int mode));
#endif
|