1 /* 2 (c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org) 3 (c) Copyright 2000-2004 Convergence (integrated media) GmbH 4 5 All rights reserved. 6 7 Written by Denis Oliver Kropp <dok@directfb.org>, 8 Andreas Hundt <andi@fischlustig.de>, 9 Sven Neumann <neo@directfb.org>, 10 Ville Syrjälä <syrjala@sci.fi> and 11 Claudio Ciccani <klan@users.sf.net>. 12 13 This library is free software; you can redistribute it and/or 14 modify it under the terms of the GNU Lesser General Public 15 License as published by the Free Software Foundation; either 16 version 2 of the License, or (at your option) any later version. 17 18 This library is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 Lesser General Public License for more details. 22 23 You should have received a copy of the GNU Lesser General Public 24 License along with this library; if not, write to the 25 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 26 Boston, MA 02111-1307, USA. 27 */ 28 29 #ifndef __DEVMEM_DEVMEM_H__ 30 #define __DEVMEM_DEVMEM_H__ 31 32 #include <fusion/shmalloc.h> 33 34 #include <core/surface_pool.h> 35 36 #include "surfacemanager.h" 37 38 39 #define DEV_MEM "/dev/mem" 40 41 extern const SurfacePoolFuncs devmemSurfacePoolFuncs; 42 43 44 typedef struct { 45 FusionSHMPoolShared *shmpool; 46 47 CoreSurfacePool *pool; 48 SurfaceManager *manager; 49 } DevMemDataShared; 50 51 typedef struct { 52 DevMemDataShared *shared; 53 54 void *mem; 55 volatile void *reg; 56 } DevMemData; 57 58 59 #endif 60 61