| 1 | ############################################################ |
|---|
| 2 | # Copyright (c) 2003-2010, Broadcom Corporation |
|---|
| 3 | # All Rights Reserved |
|---|
| 4 | # Confidential Property of Broadcom Corporation |
|---|
| 5 | # |
|---|
| 6 | # THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | # AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | # EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | # |
|---|
| 10 | # $brcm_Workfile: bmrc.inc $ |
|---|
| 11 | # $brcm_Revision: Hydra_Software_Devel/4 $ |
|---|
| 12 | # $brcm_Date: 6/30/10 5:05p $ |
|---|
| 13 | # |
|---|
| 14 | # Module Description: |
|---|
| 15 | # |
|---|
| 16 | # Revision History: |
|---|
| 17 | # |
|---|
| 18 | # Created: 01/09/2007 by Jon Garrett |
|---|
| 19 | # |
|---|
| 20 | # $brcm_Log: /magnum/commonutils/mrc/bmrc.inc $ |
|---|
| 21 | # |
|---|
| 22 | # Hydra_Software_Devel/4 6/30/10 5:05p albertl |
|---|
| 23 | # SW35230-498: Changed to use BMRC_ALLOW_PCU_TO_ACCESS_KERNEL flag. |
|---|
| 24 | # |
|---|
| 25 | # Hydra_Software_Devel/3 3/18/10 11:55a erickson |
|---|
| 26 | # SW7405-3892: change default list of non-OS HW clients to prevent |
|---|
| 27 | # GFD/M2MC access to kernel memory. this is rarely done. added export |
|---|
| 28 | # BMRC_ALLOW_GFX_TO_ACCESS_KERNEL=y compile time option to allow this |
|---|
| 29 | # access. |
|---|
| 30 | # |
|---|
| 31 | # Hydra_Software_Devel/2 2/25/08 7:19p albertl |
|---|
| 32 | # PR36876: Added bmrc_clienttable.c. |
|---|
| 33 | # |
|---|
| 34 | # Hydra_Software_Devel/1 1/11/07 2:38p jgarrett |
|---|
| 35 | # PR27004: Adding new .inc files |
|---|
| 36 | # |
|---|
| 37 | ############################################################ |
|---|
| 38 | |
|---|
| 39 | # |
|---|
| 40 | # Conditional Options for this Makefile |
|---|
| 41 | # |
|---|
| 42 | # N/A |
|---|
| 43 | # |
|---|
| 44 | |
|---|
| 45 | # Define this module |
|---|
| 46 | MAGNUM_MODULES += BMRC |
|---|
| 47 | |
|---|
| 48 | # Module Includes |
|---|
| 49 | BMRC_INCLUDES += $(MAGNUM)/commonutils/mrc/$(BCHP_CHIP) |
|---|
| 50 | |
|---|
| 51 | # Module Sources |
|---|
| 52 | BMRC_SOURCES += $(MAGNUM)/commonutils/mrc/$(BCHP_CHIP)/bmrc.c |
|---|
| 53 | BMRC_SOURCES += $(MAGNUM)/commonutils/mrc/$(BCHP_CHIP)/bmrc_clienttable_priv.c |
|---|
| 54 | BMRC_SOURCES += $(MAGNUM)/commonutils/mrc/$(BCHP_CHIP)/bmrc_monitor_clients.c |
|---|
| 55 | BMRC_SOURCES += $(MAGNUM)/commonutils/mrc/$(BCHP_CHIP)/bmrc_monitor.c |
|---|
| 56 | |
|---|
| 57 | # By default, GFD and M2MC cannot access OS-allocated memory. They access MEM-allocated memory. |
|---|
| 58 | # If you have done the necessary work to provide contiguous physical memory with physical |
|---|
| 59 | # offsets, then you can allow GFD and M2MC to access OS-allocated memory. You must |
|---|
| 60 | # export BMRC_ALLOW_GFX_TO_ACCESS_KERNEL=y to prevent MRC from blocking this access. |
|---|
| 61 | # |
|---|
| 62 | ifeq ($(BMRC_ALLOW_GFX_TO_ACCESS_KERNEL),y) |
|---|
| 63 | BMRC_DEFINES += BMRC_ALLOW_GFX_TO_ACCESS_KERNEL |
|---|
| 64 | endif |
|---|
| 65 | |
|---|
| 66 | ifeq ($(BMRC_ALLOW_PCU_TO_ACCESS_KERNEL),y) |
|---|
| 67 | BMRC_DEFINES += BMRC_ALLOW_PCU_TO_ACCESS_KERNEL |
|---|
| 68 | endif |
|---|