Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/pl310.c
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
#include <dev/ofw/ofw_bus_subr.h> | #include <dev/ofw/ofw_bus_subr.h> | ||||
/* | /* | ||||
* Define this if you need to disable PL310 for debugging purpose | * Define this if you need to disable PL310 for debugging purpose | ||||
* Spec: | * Spec: | ||||
* http://infocenter.arm.com/help/topic/com.arm.doc.ddi0246e/DDI0246E_l2c310_r3p1_trm.pdf | * http://infocenter.arm.com/help/topic/com.arm.doc.ddi0246e/DDI0246E_l2c310_r3p1_trm.pdf | ||||
*/ | */ | ||||
/* Armada38x has a corrected version of the pl310 */ | |||||
#ifndef SOC_MV_ARMADA38X | |||||
/* | /* | ||||
* Hardcode errata for now | * Hardcode errata for now | ||||
* http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0246b/pr01s02s02.html | * http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0246b/pr01s02s02.html | ||||
*/ | */ | ||||
#define PL310_ERRATA_588369 | #define PL310_ERRATA_588369 | ||||
#define PL310_ERRATA_753970 | #define PL310_ERRATA_753970 | ||||
#define PL310_ERRATA_727915 | #define PL310_ERRATA_727915 | ||||
#endif | |||||
#define PL310_LOCK(sc) do { \ | #define PL310_LOCK(sc) do { \ | ||||
mtx_lock_spin(&(sc)->sc_mtx); \ | mtx_lock_spin(&(sc)->sc_mtx); \ | ||||
} while(0); | } while(0); | ||||
#define PL310_UNLOCK(sc) do { \ | #define PL310_UNLOCK(sc) do { \ | ||||
mtx_unlock_spin(&(sc)->sc_mtx); \ | mtx_unlock_spin(&(sc)->sc_mtx); \ | ||||
} while(0); | } while(0); | ||||
▲ Show 20 Lines • Show All 478 Lines • Show Last 20 Lines |