|
@@ -291,20 +291,20 @@ static int acpi_video_device_lcd_set_level(struct acpi_video_device *device,
|
|
int level);
|
|
int level);
|
|
static int acpi_video_device_lcd_get_level_current(
|
|
static int acpi_video_device_lcd_get_level_current(
|
|
struct acpi_video_device *device,
|
|
struct acpi_video_device *device,
|
|
- unsigned long *level);
|
|
|
|
|
|
+ unsigned long long *level);
|
|
static int acpi_video_get_next_level(struct acpi_video_device *device,
|
|
static int acpi_video_get_next_level(struct acpi_video_device *device,
|
|
u32 level_current, u32 event);
|
|
u32 level_current, u32 event);
|
|
static void acpi_video_switch_brightness(struct acpi_video_device *device,
|
|
static void acpi_video_switch_brightness(struct acpi_video_device *device,
|
|
int event);
|
|
int event);
|
|
static int acpi_video_device_get_state(struct acpi_video_device *device,
|
|
static int acpi_video_device_get_state(struct acpi_video_device *device,
|
|
- unsigned long *state);
|
|
|
|
|
|
+ unsigned long long *state);
|
|
static int acpi_video_output_get(struct output_device *od);
|
|
static int acpi_video_output_get(struct output_device *od);
|
|
static int acpi_video_device_set_state(struct acpi_video_device *device, int state);
|
|
static int acpi_video_device_set_state(struct acpi_video_device *device, int state);
|
|
|
|
|
|
/*backlight device sysfs support*/
|
|
/*backlight device sysfs support*/
|
|
static int acpi_video_get_brightness(struct backlight_device *bd)
|
|
static int acpi_video_get_brightness(struct backlight_device *bd)
|
|
{
|
|
{
|
|
- unsigned long cur_level;
|
|
|
|
|
|
+ unsigned long long cur_level;
|
|
int i;
|
|
int i;
|
|
struct acpi_video_device *vd =
|
|
struct acpi_video_device *vd =
|
|
(struct acpi_video_device *)bl_get_data(bd);
|
|
(struct acpi_video_device *)bl_get_data(bd);
|
|
@@ -336,7 +336,7 @@ static struct backlight_ops acpi_backlight_ops = {
|
|
/*video output device sysfs support*/
|
|
/*video output device sysfs support*/
|
|
static int acpi_video_output_get(struct output_device *od)
|
|
static int acpi_video_output_get(struct output_device *od)
|
|
{
|
|
{
|
|
- unsigned long state;
|
|
|
|
|
|
+ unsigned long long state;
|
|
struct acpi_video_device *vd =
|
|
struct acpi_video_device *vd =
|
|
(struct acpi_video_device *)dev_get_drvdata(&od->dev);
|
|
(struct acpi_video_device *)dev_get_drvdata(&od->dev);
|
|
acpi_video_device_get_state(vd, &state);
|
|
acpi_video_device_get_state(vd, &state);
|
|
@@ -370,7 +370,7 @@ static int video_get_cur_state(struct thermal_cooling_device *cdev, char *buf)
|
|
{
|
|
{
|
|
struct acpi_device *device = cdev->devdata;
|
|
struct acpi_device *device = cdev->devdata;
|
|
struct acpi_video_device *video = acpi_driver_data(device);
|
|
struct acpi_video_device *video = acpi_driver_data(device);
|
|
- unsigned long level;
|
|
|
|
|
|
+ unsigned long long level;
|
|
int state;
|
|
int state;
|
|
|
|
|
|
acpi_video_device_lcd_get_level_current(video, &level);
|
|
acpi_video_device_lcd_get_level_current(video, &level);
|
|
@@ -410,7 +410,7 @@ static struct thermal_cooling_device_ops video_cooling_ops = {
|
|
/* device */
|
|
/* device */
|
|
|
|
|
|
static int
|
|
static int
|
|
-acpi_video_device_query(struct acpi_video_device *device, unsigned long *state)
|
|
|
|
|
|
+acpi_video_device_query(struct acpi_video_device *device, unsigned long long *state)
|
|
{
|
|
{
|
|
int status;
|
|
int status;
|
|
|
|
|
|
@@ -421,7 +421,7 @@ acpi_video_device_query(struct acpi_video_device *device, unsigned long *state)
|
|
|
|
|
|
static int
|
|
static int
|
|
acpi_video_device_get_state(struct acpi_video_device *device,
|
|
acpi_video_device_get_state(struct acpi_video_device *device,
|
|
- unsigned long *state)
|
|
|
|
|
|
+ unsigned long long *state)
|
|
{
|
|
{
|
|
int status;
|
|
int status;
|
|
|
|
|
|
@@ -436,7 +436,7 @@ acpi_video_device_set_state(struct acpi_video_device *device, int state)
|
|
int status;
|
|
int status;
|
|
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 };
|
|
- unsigned long ret;
|
|
|
|
|
|
+ unsigned long long ret;
|
|
|
|
|
|
|
|
|
|
arg0.integer.value = state;
|
|
arg0.integer.value = state;
|
|
@@ -495,7 +495,7 @@ acpi_video_device_lcd_set_level(struct acpi_video_device *device, int level)
|
|
|
|
|
|
static int
|
|
static int
|
|
acpi_video_device_lcd_get_level_current(struct acpi_video_device *device,
|
|
acpi_video_device_lcd_get_level_current(struct acpi_video_device *device,
|
|
- unsigned long *level)
|
|
|
|
|
|
+ unsigned long long *level)
|
|
{
|
|
{
|
|
if (device->cap._BQC)
|
|
if (device->cap._BQC)
|
|
return acpi_evaluate_integer(device->dev->handle, "_BQC", NULL,
|
|
return acpi_evaluate_integer(device->dev->handle, "_BQC", NULL,
|
|
@@ -549,7 +549,7 @@ static int
|
|
acpi_video_bus_set_POST(struct acpi_video_bus *video, unsigned long option)
|
|
acpi_video_bus_set_POST(struct acpi_video_bus *video, unsigned long option)
|
|
{
|
|
{
|
|
int status;
|
|
int status;
|
|
- unsigned long tmp;
|
|
|
|
|
|
+ unsigned long long tmp;
|
|
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 };
|
|
|
|
|
|
@@ -564,7 +564,7 @@ acpi_video_bus_set_POST(struct acpi_video_bus *video, unsigned long option)
|
|
}
|
|
}
|
|
|
|
|
|
static int
|
|
static int
|
|
-acpi_video_bus_get_POST(struct acpi_video_bus *video, unsigned long *id)
|
|
|
|
|
|
+acpi_video_bus_get_POST(struct acpi_video_bus *video, unsigned long long *id)
|
|
{
|
|
{
|
|
int status;
|
|
int status;
|
|
|
|
|
|
@@ -575,7 +575,7 @@ acpi_video_bus_get_POST(struct acpi_video_bus *video, unsigned long *id)
|
|
|
|
|
|
static int
|
|
static int
|
|
acpi_video_bus_POST_options(struct acpi_video_bus *video,
|
|
acpi_video_bus_POST_options(struct acpi_video_bus *video,
|
|
- unsigned long *options)
|
|
|
|
|
|
+ unsigned long long *options)
|
|
{
|
|
{
|
|
int status;
|
|
int status;
|
|
|
|
|
|
@@ -918,7 +918,7 @@ static int acpi_video_device_state_seq_show(struct seq_file *seq, void *offset)
|
|
{
|
|
{
|
|
int status;
|
|
int status;
|
|
struct acpi_video_device *dev = seq->private;
|
|
struct acpi_video_device *dev = seq->private;
|
|
- unsigned long state;
|
|
|
|
|
|
+ unsigned long long state;
|
|
|
|
|
|
|
|
|
|
if (!dev)
|
|
if (!dev)
|
|
@@ -927,14 +927,14 @@ static int acpi_video_device_state_seq_show(struct seq_file *seq, void *offset)
|
|
status = acpi_video_device_get_state(dev, &state);
|
|
status = acpi_video_device_get_state(dev, &state);
|
|
seq_printf(seq, "state: ");
|
|
seq_printf(seq, "state: ");
|
|
if (ACPI_SUCCESS(status))
|
|
if (ACPI_SUCCESS(status))
|
|
- seq_printf(seq, "0x%02lx\n", state);
|
|
|
|
|
|
+ seq_printf(seq, "0x%02llx\n", state);
|
|
else
|
|
else
|
|
seq_printf(seq, "<not supported>\n");
|
|
seq_printf(seq, "<not supported>\n");
|
|
|
|
|
|
status = acpi_video_device_query(dev, &state);
|
|
status = acpi_video_device_query(dev, &state);
|
|
seq_printf(seq, "query: ");
|
|
seq_printf(seq, "query: ");
|
|
if (ACPI_SUCCESS(status))
|
|
if (ACPI_SUCCESS(status))
|
|
- seq_printf(seq, "0x%02lx\n", state);
|
|
|
|
|
|
+ seq_printf(seq, "0x%02llx\n", state);
|
|
else
|
|
else
|
|
seq_printf(seq, "<not supported>\n");
|
|
seq_printf(seq, "<not supported>\n");
|
|
|
|
|
|
@@ -1217,7 +1217,7 @@ static int acpi_video_bus_ROM_open_fs(struct inode *inode, struct file *file)
|
|
static int acpi_video_bus_POST_info_seq_show(struct seq_file *seq, void *offset)
|
|
static int acpi_video_bus_POST_info_seq_show(struct seq_file *seq, void *offset)
|
|
{
|
|
{
|
|
struct acpi_video_bus *video = seq->private;
|
|
struct acpi_video_bus *video = seq->private;
|
|
- unsigned long options;
|
|
|
|
|
|
+ unsigned long long options;
|
|
int status;
|
|
int status;
|
|
|
|
|
|
|
|
|
|
@@ -1232,7 +1232,7 @@ static int acpi_video_bus_POST_info_seq_show(struct seq_file *seq, void *offset)
|
|
printk(KERN_WARNING PREFIX
|
|
printk(KERN_WARNING PREFIX
|
|
"This indicates a BIOS bug. Please contact the manufacturer.\n");
|
|
"This indicates a BIOS bug. Please contact the manufacturer.\n");
|
|
}
|
|
}
|
|
- printk("%lx\n", options);
|
|
|
|
|
|
+ printk("%llx\n", options);
|
|
seq_printf(seq, "can POST: <integrated video>");
|
|
seq_printf(seq, "can POST: <integrated video>");
|
|
if (options & 2)
|
|
if (options & 2)
|
|
seq_printf(seq, " <PCI video>");
|
|
seq_printf(seq, " <PCI video>");
|
|
@@ -1256,7 +1256,7 @@ static int acpi_video_bus_POST_seq_show(struct seq_file *seq, void *offset)
|
|
{
|
|
{
|
|
struct acpi_video_bus *video = seq->private;
|
|
struct acpi_video_bus *video = seq->private;
|
|
int status;
|
|
int status;
|
|
- unsigned long id;
|
|
|
|
|
|
+ unsigned long long id;
|
|
|
|
|
|
|
|
|
|
if (!video)
|
|
if (!video)
|
|
@@ -1303,7 +1303,7 @@ acpi_video_bus_write_POST(struct file *file,
|
|
struct seq_file *m = file->private_data;
|
|
struct seq_file *m = file->private_data;
|
|
struct acpi_video_bus *video = m->private;
|
|
struct acpi_video_bus *video = m->private;
|
|
char str[12] = { 0 };
|
|
char str[12] = { 0 };
|
|
- unsigned long opt, options;
|
|
|
|
|
|
+ unsigned long long opt, options;
|
|
|
|
|
|
|
|
|
|
if (!video || count + 1 > sizeof str)
|
|
if (!video || count + 1 > sizeof str)
|
|
@@ -1473,7 +1473,7 @@ static int
|
|
acpi_video_bus_get_one_device(struct acpi_device *device,
|
|
acpi_video_bus_get_one_device(struct acpi_device *device,
|
|
struct acpi_video_bus *video)
|
|
struct acpi_video_bus *video)
|
|
{
|
|
{
|
|
- unsigned long device_id;
|
|
|
|
|
|
+ unsigned long long device_id;
|
|
int status;
|
|
int status;
|
|
struct acpi_video_device *data;
|
|
struct acpi_video_device *data;
|
|
struct acpi_video_device_attrib* attribute;
|
|
struct acpi_video_device_attrib* attribute;
|
|
@@ -1724,7 +1724,7 @@ acpi_video_get_next_level(struct acpi_video_device *device,
|
|
static void
|
|
static void
|
|
acpi_video_switch_brightness(struct acpi_video_device *device, int event)
|
|
acpi_video_switch_brightness(struct acpi_video_device *device, int event)
|
|
{
|
|
{
|
|
- unsigned long level_current, level_next;
|
|
|
|
|
|
+ unsigned long long level_current, level_next;
|
|
if (!device->brightness)
|
|
if (!device->brightness)
|
|
return;
|
|
return;
|
|
acpi_video_device_lcd_get_level_current(device, &level_current);
|
|
acpi_video_device_lcd_get_level_current(device, &level_current);
|