1
0
Fork 0

ACPI: replace acpi_integer by u64

acpi_integer is now obsolete and removed from the ACPICA code base,
replaced by u64.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
wifi-calibration
Lin Ming 2010-01-28 10:53:19 +08:00 committed by Len Brown
parent aea9c04bcc
commit 439913fffd
19 changed files with 87 additions and 87 deletions

View File

@ -77,7 +77,7 @@ static void aml_nfw_execute(struct ia64_nfw_context *c)
c->arg[4], c->arg[5], c->arg[6], c->arg[7]); c->arg[4], c->arg[5], c->arg[6], c->arg[7]);
} }
static void aml_nfw_read_arg(u8 *offset, u32 bit_width, acpi_integer *value) static void aml_nfw_read_arg(u8 *offset, u32 bit_width, u64 *value)
{ {
switch (bit_width) { switch (bit_width) {
case 8: case 8:
@ -95,7 +95,7 @@ static void aml_nfw_read_arg(u8 *offset, u32 bit_width, acpi_integer *value)
} }
} }
static void aml_nfw_write_arg(u8 *offset, u32 bit_width, acpi_integer *value) static void aml_nfw_write_arg(u8 *offset, u32 bit_width, u64 *value)
{ {
switch (bit_width) { switch (bit_width) {
case 8: case 8:
@ -114,7 +114,7 @@ static void aml_nfw_write_arg(u8 *offset, u32 bit_width, acpi_integer *value)
} }
static acpi_status aml_nfw_handler(u32 function, acpi_physical_address address, static acpi_status aml_nfw_handler(u32 function, acpi_physical_address address,
u32 bit_width, acpi_integer *value, void *handler_context, u32 bit_width, u64 *value, void *handler_context,
void *region_context) void *region_context)
{ {
struct ia64_nfw_context *context = handler_context; struct ia64_nfw_context *context = handler_context;

View File

@ -806,7 +806,7 @@ static int find_psb_table(struct powernow_k8_data *data)
static void powernow_k8_acpi_pst_values(struct powernow_k8_data *data, static void powernow_k8_acpi_pst_values(struct powernow_k8_data *data,
unsigned int index) unsigned int index)
{ {
acpi_integer control; u64 control;
if (!data->acpi_data.state_count || (cpu_family == CPU_HW_PSTATE)) if (!data->acpi_data.state_count || (cpu_family == CPU_HW_PSTATE))
return; return;
@ -824,7 +824,7 @@ static int powernow_k8_cpu_init_acpi(struct powernow_k8_data *data)
{ {
struct cpufreq_frequency_table *powernow_table; struct cpufreq_frequency_table *powernow_table;
int ret_val = -ENODEV; int ret_val = -ENODEV;
acpi_integer control, status; u64 control, status;
if (acpi_processor_register_performance(&data->acpi_data, data->cpu)) { if (acpi_processor_register_performance(&data->acpi_data, data->cpu)) {
dprintk("register performance failed: bad ACPI data\n"); dprintk("register performance failed: bad ACPI data\n");
@ -948,7 +948,7 @@ static int fill_powernow_table_fidvid(struct powernow_k8_data *data,
u32 fid; u32 fid;
u32 vid; u32 vid;
u32 freq, index; u32 freq, index;
acpi_integer status, control; u64 status, control;
if (data->exttype) { if (data->exttype) {
status = data->acpi_data.states[i].status; status = data->acpi_data.states[i].status;

View File

@ -324,8 +324,8 @@ static int extract_package(struct acpi_battery *battery,
strncpy(ptr, element->string.pointer, 32); strncpy(ptr, element->string.pointer, 32);
else if (element->type == ACPI_TYPE_INTEGER) { else if (element->type == ACPI_TYPE_INTEGER) {
strncpy(ptr, (u8 *)&element->integer.value, strncpy(ptr, (u8 *)&element->integer.value,
sizeof(acpi_integer)); sizeof(u64));
ptr[sizeof(acpi_integer)] = 0; ptr[sizeof(u64)] = 0;
} else } else
*ptr = 0; /* don't have value */ *ptr = 0; /* don't have value */
} else { } else {

View File

@ -589,7 +589,7 @@ static u32 acpi_ec_gpe_handler(void *data)
static acpi_status static acpi_status
acpi_ec_space_handler(u32 function, acpi_physical_address address, acpi_ec_space_handler(u32 function, acpi_physical_address address,
u32 bits, acpi_integer *value, u32 bits, u64 *value,
void *handler_context, void *region_context) void *handler_context, void *region_context)
{ {
struct acpi_ec *ec = handler_context; struct acpi_ec *ec = handler_context;
@ -620,7 +620,7 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
++address; ++address;
if (function == ACPI_READ) { if (function == ACPI_READ) {
result = acpi_ec_read(ec, address, &temp); result = acpi_ec_read(ec, address, &temp);
(*value) |= ((acpi_integer)temp) << i; (*value) |= ((u64)temp) << i;
} else { } else {
temp = 0xff & ((*value) >> i); temp = 0xff & ((*value) >> i);
result = acpi_ec_write(ec, address, temp); result = acpi_ec_write(ec, address, temp);

View File

@ -87,7 +87,7 @@ static int acpi_find_bridge_device(struct device *dev, acpi_handle * handle)
/* Get device's handler per its address under its parent */ /* Get device's handler per its address under its parent */
struct acpi_find_child { struct acpi_find_child {
acpi_handle handle; acpi_handle handle;
acpi_integer address; u64 address;
}; };
static acpi_status static acpi_status
@ -106,7 +106,7 @@ do_acpi_find_child(acpi_handle handle, u32 lvl, void *context, void **rv)
return AE_OK; return AE_OK;
} }
acpi_handle acpi_get_child(acpi_handle parent, acpi_integer address) acpi_handle acpi_get_child(acpi_handle parent, u64 address)
{ {
struct acpi_find_child find = { NULL, address }; struct acpi_find_child find = { NULL, address };

View File

@ -436,7 +436,7 @@ acpi_status acpi_os_remove_interrupt_handler(u32 irq, acpi_osd_handler handler)
* Running in interpreter thread context, safe to sleep * Running in interpreter thread context, safe to sleep
*/ */
void acpi_os_sleep(acpi_integer ms) void acpi_os_sleep(u64 ms)
{ {
schedule_timeout_interruptible(msecs_to_jiffies(ms)); schedule_timeout_interruptible(msecs_to_jiffies(ms));
} }
@ -603,7 +603,7 @@ acpi_os_read_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
acpi_status acpi_status
acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id, u32 reg, acpi_os_write_pci_configuration(struct acpi_pci_id * pci_id, u32 reg,
acpi_integer value, u32 width) u64 value, u32 width)
{ {
int result, size; int result, size;

View File

@ -71,17 +71,17 @@ static const struct acpi_device_id power_meter_ids[] = {
MODULE_DEVICE_TABLE(acpi, power_meter_ids); MODULE_DEVICE_TABLE(acpi, power_meter_ids);
struct acpi_power_meter_capabilities { struct acpi_power_meter_capabilities {
acpi_integer flags; u64 flags;
acpi_integer units; u64 units;
acpi_integer type; u64 type;
acpi_integer accuracy; u64 accuracy;
acpi_integer sampling_time; u64 sampling_time;
acpi_integer min_avg_interval; u64 min_avg_interval;
acpi_integer max_avg_interval; u64 max_avg_interval;
acpi_integer hysteresis; u64 hysteresis;
acpi_integer configurable_cap; u64 configurable_cap;
acpi_integer min_cap; u64 min_cap;
acpi_integer max_cap; u64 max_cap;
}; };
struct acpi_power_meter_resource { struct acpi_power_meter_resource {
@ -93,9 +93,9 @@ struct acpi_power_meter_resource {
acpi_string model_number; acpi_string model_number;
acpi_string serial_number; acpi_string serial_number;
acpi_string oem_info; acpi_string oem_info;
acpi_integer power; u64 power;
acpi_integer cap; u64 cap;
acpi_integer avg_interval; u64 avg_interval;
int sensors_valid; int sensors_valid;
unsigned long sensors_last_updated; unsigned long sensors_last_updated;
struct sensor_device_attribute sensors[NUM_SENSORS]; struct sensor_device_attribute sensors[NUM_SENSORS];
@ -402,7 +402,7 @@ static ssize_t show_val(struct device *dev,
struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr);
struct acpi_device *acpi_dev = to_acpi_device(dev); struct acpi_device *acpi_dev = to_acpi_device(dev);
struct acpi_power_meter_resource *resource = acpi_dev->driver_data; struct acpi_power_meter_resource *resource = acpi_dev->driver_data;
acpi_integer val = 0; u64 val = 0;
switch (attr->index) { switch (attr->index) {
case 0: case 0:

View File

@ -352,7 +352,7 @@ static int acpi_processor_get_power_info_default(struct acpi_processor *pr)
static int acpi_processor_get_power_info_cst(struct acpi_processor *pr) static int acpi_processor_get_power_info_cst(struct acpi_processor *pr)
{ {
acpi_status status = 0; acpi_status status = 0;
acpi_integer count; u64 count;
int current_count; int current_count;
int i; int i;
struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };

View File

@ -660,7 +660,7 @@ static int acpi_processor_get_throttling_fadt(struct acpi_processor *pr)
#ifdef CONFIG_X86 #ifdef CONFIG_X86
static int acpi_throttling_rdmsr(struct acpi_processor *pr, static int acpi_throttling_rdmsr(struct acpi_processor *pr,
acpi_integer * value) u64 *value)
{ {
struct cpuinfo_x86 *c; struct cpuinfo_x86 *c;
u64 msr_high, msr_low; u64 msr_high, msr_low;
@ -681,13 +681,13 @@ static int acpi_throttling_rdmsr(struct acpi_processor *pr,
rdmsr_safe(MSR_IA32_THERM_CONTROL, rdmsr_safe(MSR_IA32_THERM_CONTROL,
(u32 *)&msr_low , (u32 *) &msr_high); (u32 *)&msr_low , (u32 *) &msr_high);
msr = (msr_high << 32) | msr_low; msr = (msr_high << 32) | msr_low;
*value = (acpi_integer) msr; *value = (u64) msr;
ret = 0; ret = 0;
} }
return ret; return ret;
} }
static int acpi_throttling_wrmsr(struct acpi_processor *pr, acpi_integer value) static int acpi_throttling_wrmsr(struct acpi_processor *pr, u64 value)
{ {
struct cpuinfo_x86 *c; struct cpuinfo_x86 *c;
unsigned int cpu; unsigned int cpu;
@ -711,14 +711,14 @@ static int acpi_throttling_wrmsr(struct acpi_processor *pr, acpi_integer value)
} }
#else #else
static int acpi_throttling_rdmsr(struct acpi_processor *pr, static int acpi_throttling_rdmsr(struct acpi_processor *pr,
acpi_integer * value) u64 *value)
{ {
printk(KERN_ERR PREFIX printk(KERN_ERR PREFIX
"HARDWARE addr space,NOT supported yet\n"); "HARDWARE addr space,NOT supported yet\n");
return -1; return -1;
} }
static int acpi_throttling_wrmsr(struct acpi_processor *pr, acpi_integer value) static int acpi_throttling_wrmsr(struct acpi_processor *pr, u64 value)
{ {
printk(KERN_ERR PREFIX printk(KERN_ERR PREFIX
"HARDWARE addr space,NOT supported yet\n"); "HARDWARE addr space,NOT supported yet\n");
@ -727,7 +727,7 @@ static int acpi_throttling_wrmsr(struct acpi_processor *pr, acpi_integer value)
#endif #endif
static int acpi_read_throttling_status(struct acpi_processor *pr, static int acpi_read_throttling_status(struct acpi_processor *pr,
acpi_integer *value) u64 *value)
{ {
u32 bit_width, bit_offset; u32 bit_width, bit_offset;
u64 ptc_value; u64 ptc_value;
@ -746,7 +746,7 @@ static int acpi_read_throttling_status(struct acpi_processor *pr,
address, (u32 *) &ptc_value, address, (u32 *) &ptc_value,
(u32) (bit_width + bit_offset)); (u32) (bit_width + bit_offset));
ptc_mask = (1 << bit_width) - 1; ptc_mask = (1 << bit_width) - 1;
*value = (acpi_integer) ((ptc_value >> bit_offset) & ptc_mask); *value = (u64) ((ptc_value >> bit_offset) & ptc_mask);
ret = 0; ret = 0;
break; break;
case ACPI_ADR_SPACE_FIXED_HARDWARE: case ACPI_ADR_SPACE_FIXED_HARDWARE:
@ -760,7 +760,7 @@ static int acpi_read_throttling_status(struct acpi_processor *pr,
} }
static int acpi_write_throttling_state(struct acpi_processor *pr, static int acpi_write_throttling_state(struct acpi_processor *pr,
acpi_integer value) u64 value)
{ {
u32 bit_width, bit_offset; u32 bit_width, bit_offset;
u64 ptc_value; u64 ptc_value;
@ -793,7 +793,7 @@ static int acpi_write_throttling_state(struct acpi_processor *pr,
} }
static int acpi_get_throttling_state(struct acpi_processor *pr, static int acpi_get_throttling_state(struct acpi_processor *pr,
acpi_integer value) u64 value)
{ {
int i; int i;
@ -808,7 +808,7 @@ static int acpi_get_throttling_state(struct acpi_processor *pr,
} }
static int acpi_get_throttling_value(struct acpi_processor *pr, static int acpi_get_throttling_value(struct acpi_processor *pr,
int state, acpi_integer *value) int state, u64 *value)
{ {
int ret = -1; int ret = -1;
@ -826,7 +826,7 @@ static int acpi_processor_get_throttling_ptc(struct acpi_processor *pr)
{ {
int state = 0; int state = 0;
int ret; int ret;
acpi_integer value; u64 value;
if (!pr) if (!pr)
return -EINVAL; return -EINVAL;
@ -993,7 +993,7 @@ static int acpi_processor_set_throttling_ptc(struct acpi_processor *pr,
int state, bool force) int state, bool force)
{ {
int ret; int ret;
acpi_integer value; u64 value;
if (!pr) if (!pr)
return -EINVAL; return -EINVAL;

View File

@ -107,12 +107,12 @@ acpi_extract_package(union acpi_object *package,
case ACPI_TYPE_INTEGER: case ACPI_TYPE_INTEGER:
switch (format_string[i]) { switch (format_string[i]) {
case 'N': case 'N':
size_required += sizeof(acpi_integer); size_required += sizeof(u64);
tail_offset += sizeof(acpi_integer); tail_offset += sizeof(u64);
break; break;
case 'S': case 'S':
size_required += size_required +=
sizeof(char *) + sizeof(acpi_integer) + sizeof(char *) + sizeof(u64) +
sizeof(char); sizeof(char);
tail_offset += sizeof(char *); tail_offset += sizeof(char *);
break; break;
@ -193,17 +193,17 @@ acpi_extract_package(union acpi_object *package,
case ACPI_TYPE_INTEGER: case ACPI_TYPE_INTEGER:
switch (format_string[i]) { switch (format_string[i]) {
case 'N': case 'N':
*((acpi_integer *) head) = *((u64 *) head) =
element->integer.value; element->integer.value;
head += sizeof(acpi_integer); head += sizeof(u64);
break; break;
case 'S': case 'S':
pointer = (u8 **) head; pointer = (u8 **) head;
*pointer = tail; *pointer = tail;
*((acpi_integer *) tail) = *((u64 *) tail) =
element->integer.value; element->integer.value;
head += sizeof(acpi_integer *); head += sizeof(u64 *);
tail += sizeof(acpi_integer); tail += sizeof(u64);
/* NULL terminate string */ /* NULL terminate string */
*tail = (char)0; *tail = (char)0;
tail += sizeof(char); tail += sizeof(char);

View File

@ -759,7 +759,7 @@ acpi_video_bus_POST_options(struct acpi_video_bus *video,
static int static int
acpi_video_bus_DOS(struct acpi_video_bus *video, int bios_flag, int lcd_flag) acpi_video_bus_DOS(struct acpi_video_bus *video, int bios_flag, int lcd_flag)
{ {
acpi_integer status = 0; u64 status = 0;
union acpi_object arg0 = { ACPI_TYPE_INTEGER }; union acpi_object arg0 = { ACPI_TYPE_INTEGER };
struct acpi_object_list args = { 1, &arg0 }; struct acpi_object_list args = { 1, &arg0 };

View File

@ -64,7 +64,7 @@ void ata_acpi_associate_sata_port(struct ata_port *ap)
WARN_ON(!(ap->flags & ATA_FLAG_ACPI_SATA)); WARN_ON(!(ap->flags & ATA_FLAG_ACPI_SATA));
if (!sata_pmp_attached(ap)) { if (!sata_pmp_attached(ap)) {
acpi_integer adr = SATA_ADR(ap->port_no, NO_PORT_MULT); u64 adr = SATA_ADR(ap->port_no, NO_PORT_MULT);
ap->link.device->acpi_handle = ap->link.device->acpi_handle =
acpi_get_child(ap->host->acpi_handle, adr); acpi_get_child(ap->host->acpi_handle, adr);
@ -74,7 +74,7 @@ void ata_acpi_associate_sata_port(struct ata_port *ap)
ap->link.device->acpi_handle = NULL; ap->link.device->acpi_handle = NULL;
ata_for_each_link(link, ap, EDGE) { ata_for_each_link(link, ap, EDGE) {
acpi_integer adr = SATA_ADR(ap->port_no, link->pmp); u64 adr = SATA_ADR(ap->port_no, link->pmp);
link->device->acpi_handle = link->device->acpi_handle =
acpi_get_child(ap->host->acpi_handle, adr); acpi_get_child(ap->host->acpi_handle, adr);

View File

@ -108,11 +108,11 @@ bool ide_port_acpi(ide_hwif_t *hwif)
* Returns 0 on success, <0 on error. * Returns 0 on success, <0 on error.
*/ */
static int ide_get_dev_handle(struct device *dev, acpi_handle *handle, static int ide_get_dev_handle(struct device *dev, acpi_handle *handle,
acpi_integer *pcidevfn) u64 *pcidevfn)
{ {
struct pci_dev *pdev = to_pci_dev(dev); struct pci_dev *pdev = to_pci_dev(dev);
unsigned int bus, devnum, func; unsigned int bus, devnum, func;
acpi_integer addr; u64 addr;
acpi_handle dev_handle; acpi_handle dev_handle;
acpi_status status; acpi_status status;
struct acpi_device_info *dinfo = NULL; struct acpi_device_info *dinfo = NULL;
@ -122,7 +122,7 @@ static int ide_get_dev_handle(struct device *dev, acpi_handle *handle,
devnum = PCI_SLOT(pdev->devfn); devnum = PCI_SLOT(pdev->devfn);
func = PCI_FUNC(pdev->devfn); func = PCI_FUNC(pdev->devfn);
/* ACPI _ADR encoding for PCI bus: */ /* ACPI _ADR encoding for PCI bus: */
addr = (acpi_integer)(devnum << 16 | func); addr = (u64)(devnum << 16 | func);
DEBPRINT("ENTER: pci %02x:%02x.%01x\n", bus, devnum, func); DEBPRINT("ENTER: pci %02x:%02x.%01x\n", bus, devnum, func);
@ -169,7 +169,7 @@ static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif)
{ {
struct device *dev = hwif->gendev.parent; struct device *dev = hwif->gendev.parent;
acpi_handle uninitialized_var(dev_handle); acpi_handle uninitialized_var(dev_handle);
acpi_integer pcidevfn; u64 pcidevfn;
acpi_handle chan_handle; acpi_handle chan_handle;
int err; int err;

View File

@ -47,7 +47,7 @@ static acpi_status acpi_atlas_button_setup(acpi_handle region_handle,
static acpi_status acpi_atlas_button_handler(u32 function, static acpi_status acpi_atlas_button_handler(u32 function,
acpi_physical_address address, acpi_physical_address address,
u32 bit_width, acpi_integer *value, u32 bit_width, u64 *value,
void *handler_context, void *region_context) void *handler_context, void *region_context)
{ {
acpi_status status; acpi_status status;

View File

@ -143,7 +143,7 @@ static struct pci_platform_pm_ops acpi_pci_platform_pm = {
static int acpi_pci_find_device(struct device *dev, acpi_handle *handle) static int acpi_pci_find_device(struct device *dev, acpi_handle *handle)
{ {
struct pci_dev * pci_dev; struct pci_dev * pci_dev;
acpi_integer addr; u64 addr;
pci_dev = to_pci_dev(dev); pci_dev = to_pci_dev(dev);
/* Please ref to ACPI spec for the syntax of _ADR */ /* Please ref to ACPI spec for the syntax of _ADR */

View File

@ -57,7 +57,7 @@ static struct acpi_driver toshiba_bt_rfkill_driver = {
static int toshiba_bluetooth_enable(acpi_handle handle) static int toshiba_bluetooth_enable(acpi_handle handle)
{ {
acpi_status res1, res2; acpi_status res1, res2;
acpi_integer result; u64 result;
/* /*
* Query ACPI to verify RFKill switch is set to 'on'. * Query ACPI to verify RFKill switch is set to 'on'.
@ -95,7 +95,7 @@ static int toshiba_bt_resume(struct acpi_device *device)
static int toshiba_bt_rfkill_add(struct acpi_device *device) static int toshiba_bt_rfkill_add(struct acpi_device *device)
{ {
acpi_status status; acpi_status status;
acpi_integer bt_present; u64 bt_present;
int result = -ENODEV; int result = -ENODEV;
/* /*

View File

@ -796,7 +796,7 @@ static __init acpi_status parse_wdg(acpi_handle handle)
*/ */
static acpi_status static acpi_status
acpi_wmi_ec_space_handler(u32 function, acpi_physical_address address, acpi_wmi_ec_space_handler(u32 function, acpi_physical_address address,
u32 bits, acpi_integer * value, u32 bits, u64 *value,
void *handler_context, void *region_context) void *handler_context, void *region_context)
{ {
int result = 0, i = 0; int result = 0, i = 0;
@ -813,7 +813,7 @@ acpi_wmi_ec_space_handler(u32 function, acpi_physical_address address,
if (function == ACPI_READ) { if (function == ACPI_READ) {
result = ec_read(address, &temp); result = ec_read(address, &temp);
(*value) |= ((acpi_integer)temp) << i; (*value) |= ((u64)temp) << i;
} else { } else {
temp = 0xff & ((*value) >> i); temp = 0xff & ((*value) >> i);
result = ec_write(address, temp); result = ec_write(address, temp);

View File

@ -250,8 +250,8 @@ struct acpi_device_wakeup_state {
struct acpi_device_wakeup { struct acpi_device_wakeup {
acpi_handle gpe_device; acpi_handle gpe_device;
acpi_integer gpe_number; u64 gpe_number;
acpi_integer sleep_state; u64 sleep_state;
struct acpi_handle_list resources; struct acpi_handle_list resources;
struct acpi_device_wakeup_state state; struct acpi_device_wakeup_state state;
struct acpi_device_wakeup_flags flags; struct acpi_device_wakeup_flags flags;
@ -380,7 +380,7 @@ struct acpi_pci_root {
}; };
/* helper */ /* helper */
acpi_handle acpi_get_child(acpi_handle, acpi_integer); acpi_handle acpi_get_child(acpi_handle, u64);
int acpi_is_root_bridge(acpi_handle); int acpi_is_root_bridge(acpi_handle);
acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int);
struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle); struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle);

View File

@ -92,11 +92,11 @@ struct acpi_processor_power {
/* Performance Management */ /* Performance Management */
struct acpi_psd_package { struct acpi_psd_package {
acpi_integer num_entries; u64 num_entries;
acpi_integer revision; u64 revision;
acpi_integer domain; u64 domain;
acpi_integer coord_type; u64 coord_type;
acpi_integer num_processors; u64 num_processors;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct acpi_pct_register { struct acpi_pct_register {
@ -110,12 +110,12 @@ struct acpi_pct_register {
} __attribute__ ((packed)); } __attribute__ ((packed));
struct acpi_processor_px { struct acpi_processor_px {
acpi_integer core_frequency; /* megahertz */ u64 core_frequency; /* megahertz */
acpi_integer power; /* milliWatts */ u64 power; /* milliWatts */
acpi_integer transition_latency; /* microseconds */ u64 transition_latency; /* microseconds */
acpi_integer bus_master_latency; /* microseconds */ u64 bus_master_latency; /* microseconds */
acpi_integer control; /* control value */ u64 control; /* control value */
acpi_integer status; /* success indicator */ u64 status; /* success indicator */
}; };
struct acpi_processor_performance { struct acpi_processor_performance {
@ -133,11 +133,11 @@ struct acpi_processor_performance {
/* Throttling Control */ /* Throttling Control */
struct acpi_tsd_package { struct acpi_tsd_package {
acpi_integer num_entries; u64 num_entries;
acpi_integer revision; u64 revision;
acpi_integer domain; u64 domain;
acpi_integer coord_type; u64 coord_type;
acpi_integer num_processors; u64 num_processors;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct acpi_ptc_register { struct acpi_ptc_register {
@ -151,11 +151,11 @@ struct acpi_ptc_register {
} __attribute__ ((packed)); } __attribute__ ((packed));
struct acpi_processor_tx_tss { struct acpi_processor_tx_tss {
acpi_integer freqpercentage; /* */ u64 freqpercentage; /* */
acpi_integer power; /* milliWatts */ u64 power; /* milliWatts */
acpi_integer transition_latency; /* microseconds */ u64 transition_latency; /* microseconds */
acpi_integer control; /* control value */ u64 control; /* control value */
acpi_integer status; /* success indicator */ u64 status; /* success indicator */
}; };
struct acpi_processor_tx { struct acpi_processor_tx {
u16 power; u16 power;