Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Bob Copeland
On Tue, Mar 20, 2007 at 03:02:14PM +0800, Nicolas Boichat wrote: > I tried neverball on my Macbook Pro 1st generation (Core Duo, not Core 2 > Duo), and the x axis in inverted, not the y axis. > > Could you confirm which axis is inverted on your Macbook? > > Also, have you tried the modified hdaps

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Gerb Stralko
+/* data port used by apple SMC */ +#define APPLESMC_DATA_PORT 0x300 +/* command/status port used by apple SMC */ +#define APPLESMC_CMD_PORT 0x304 + +#define APPLESMC_NR_PORTS 5 /* 0x300-0x304 */ + +#define APPLESMC_STATUS_MASK 0x0f +#define APPLESMC_READ_CMD 0x10 +#define APP

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-20 Thread Bob Copeland
I tried neverball on my Macbook Pro 1st generation (Core Duo, not Core 2 Duo), and the x axis in inverted, not the y axis. Could you confirm which axis is inverted on your Macbook? Indeed, my memory is hazy and it may well have been the x-axis. I can't find my modified copy. I'll check it out

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-19 Thread Nicolas Boichat
Hello, Bob Copeland wrote: > On 3/14/07, Nicolas Boichat <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I developed, a while ago, a driver the Apple System Management >> Controller, which provides an accelerometer (Apple Sudden Motion >> Sensor), light sensors, temperature sensors, keyboard backlight

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-19 Thread Bob Copeland
On 3/14/07, Nicolas Boichat <[EMAIL PROTECTED]> wrote: Hello, I developed, a while ago, a driver the Apple System Management Controller, which provides an accelerometer (Apple Sudden Motion Sensor), light sensors, temperature sensors, keyboard backlight control and fan control on Intel-based App

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-15 Thread Nicolas Boichat
Hello, Cong WANG wrote: > 2007/3/14, Cong WANG wrote: >> I am sorry. I forgot to CC to the list. >> >> 2007/3/14, Nicolas Boichat wrote: >> > Hello, >> > >> >> >> >> > +static ssize_t applesmc_show_fan_manual(struct device *dev, char *buf, >> > +

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-14 Thread Cong WANG
2007/3/14, Cong WANG wrote: I am sorry. I forgot to CC to the list. 2007/3/14, Nicolas Boichat wrote: > Hello, > > +static ssize_t applesmc_show_fan_manual(struct device *dev, char *buf, > + int offset) > +{ > + int ret; > +

Re: [RFC][PATCH] Apple SMC driver (hardware monitoring and control)

2007-03-14 Thread Cong WANG
I am sorry. I forgot to CC to the list. 2007/3/14, Nicolas Boichat wrote: Hello, +static ssize_t applesmc_show_fan_manual(struct device *dev, char *buf, + int offset) +{ + int ret; + u16 manual = 0; + u8 buffer