#include "hal/hal.h"
+/***
+ * Functions for all H/W resources
+ */
+/* Get and put the h/w resource. */
+int pass_get_resource(struct pass *pass);
+int pass_put_resource(struct pass *pass);
+
+/***
+ * Functions for CPU/BUS/GPU H/W resources
+ */
/* Get and the current governor. */
int pass_get_curr_governor(struct pass_resource *res, char *governor);
int pass_set_curr_governor(struct pass_resource *res, char *governor);
int pass_get_up_threshold(struct pass_resource *res);
int pass_set_up_threshold(struct pass_resource *res, int up_threshold);
+/* Get the temperature and policy of thermal unit on specific h/w. */
+int pass_get_temp(struct pass_resource *res);
+int pass_get_policy(struct pass_resource *res, char *policy);
+
+/***
+ * Functions for CPU H/W resources
+ */
/* Get and set online state of cpu. */
int pass_get_online_state(struct pass_resource *res, int cpu);
int pass_set_online_state(struct pass_resource *res, int cpu, int on);
/* Get and set the maximum number of online CPUs */
int pass_get_online_max_num(struct pass_resource *res);
int pass_set_online_max_num(struct pass_resource *res, int num);
-
-/* Get the temperature and policy of thermal unit on specific h/w. */
-int pass_get_temp(struct pass_resource *res);
-int pass_get_policy(struct pass_resource *res, char *policy);
-
-/* Get and put the h/w resource. */
-int pass_get_resource(struct pass *pass);
-int pass_put_resource(struct pass *pass);
-
/*
* FXIME: Following function is not standard interface.
* These functions will be altered by the standard interface on later.