staging: tidspbridge: remove utildefs
authorIonut Nicu <ionut.nicu@gmail.com>
Sun, 21 Nov 2010 10:46:20 +0000 (10:46 +0000)
committerOmar Ramirez Luna <omar.ramirez@ti.com>
Sat, 5 Feb 2011 02:11:28 +0000 (20:11 -0600)
Remove a header file that was not very useful to
the dspbridge driver.

Signed-off-by: Ionut Nicu <ionut.nicu@mindbit.ro>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
drivers/staging/tidspbridge/include/dspbridge/utildefs.h [deleted file]
drivers/staging/tidspbridge/pmgr/cmm.c

diff --git a/drivers/staging/tidspbridge/include/dspbridge/utildefs.h b/drivers/staging/tidspbridge/include/dspbridge/utildefs.h
deleted file mode 100644 (file)
index 8fe5414..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * utildefs.h
- *
- * DSP-BIOS Bridge driver support functions for TI OMAP processors.
- *
- * Global UTIL constants and types, shared between DSP API and DSPSYS.
- *
- * Copyright (C) 2005-2006 Texas Instruments, Inc.
- *
- * This package is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
- */
-
-#ifndef UTILDEFS_
-#define UTILDEFS_
-
-/* constants taken from configmg.h */
-#define UTIL_MAXMEMREGS     9
-#define UTIL_MAXIOPORTS     20
-#define UTIL_MAXIRQS        7
-#define UTIL_MAXDMACHNLS    7
-
-/* misc. constants */
-#define UTIL_MAXARGVS       10
-
-/* Platform specific important info */
-struct util_sysinfo {
-       /* Granularity of page protection; usually 1k or 4k */
-       u32 dw_page_size;
-       u32 dw_allocation_granularity;  /* VM granularity, usually 64K */
-       u32 dw_number_of_processors;    /* Used as sanity check */
-};
-
-#endif /* UTILDEFS_ */
index 93a7c4fd57e41811fff0dcd7f01ec307a5efac06..8dbdd20c4e9e6a0ea274967b24d56ab35afaf59a 100644 (file)
@@ -40,7 +40,6 @@
 /*  ----------------------------------- OS Adaptation Layer */
 #include <dspbridge/list.h>
 #include <dspbridge/sync.h>
-#include <dspbridge/utildefs.h>
 
 /*  ----------------------------------- Platform Manager */
 #include <dspbridge/dev.h>
@@ -245,7 +244,6 @@ int cmm_create(struct cmm_object **ph_cmm_mgr,
 {
        struct cmm_object *cmm_obj = NULL;
        int status = 0;
-       struct util_sysinfo sys_info;
 
        DBC_REQUIRE(refs > 0);
        DBC_REQUIRE(ph_cmm_mgr != NULL);
@@ -261,12 +259,7 @@ int cmm_create(struct cmm_object **ph_cmm_mgr,
                DBC_ASSERT(mgr_attrts->ul_min_block_size >= 4);
                /* save away smallest block allocation for this cmm mgr */
                cmm_obj->ul_min_block_size = mgr_attrts->ul_min_block_size;
-               /* save away the systems memory page size */
-               sys_info.dw_page_size = PAGE_SIZE;
-               sys_info.dw_allocation_granularity = PAGE_SIZE;
-               sys_info.dw_number_of_processors = 1;
-
-               cmm_obj->dw_page_size = sys_info.dw_page_size;
+               cmm_obj->dw_page_size = PAGE_SIZE;
 
                /* Note: DSP SM seg table(aDSPSMSegTab[]) zero'd by
                 * MEM_ALLOC_OBJECT */