linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to creat a .config file for a driver and How to use it in a device driver?????
@ 2008-01-02 10:54 Misbah khan
  2008-01-02 17:47 ` How to creat a .config file for a driver and How to use it in adevice driver????? Sean MacLennan
  0 siblings, 1 reply; 3+ messages in thread
From: Misbah khan @ 2008-01-02 10:54 UTC (permalink / raw)
  To: linuxppc-dev


Hi all ...

i am writing a device driver in which the default configuration for LCD
display i need to keep it in a .config file so that as the system boots it
take the value from this file and does the initial configuration in the init
of the driver. If user changes the .config file content in the next boot the
LCD driver should take the new default configuration 

There will also be a run time config which could be changed at the rum time
but will not change the default configuration.


i am writing a LCD driver for PPC arch i need to know that how should i
creat a .config file and How should i use it my device driver. ??????

If you had an exprience in this regard please do share with me ...

----Misbah <><
-- 
View this message in context: http://www.nabble.com/How-to-creat-a-.config-file-for-a-driver-and-How-to-use-it-in-a-device-driver------tp14576412p14576412.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to creat a .config file for a driver and How to use it in adevice driver?????
  2008-01-02 10:54 How to creat a .config file for a driver and How to use it in a device driver????? Misbah khan
@ 2008-01-02 17:47 ` Sean MacLennan
  2008-01-03  4:40   ` Misbah khan
  0 siblings, 1 reply; 3+ messages in thread
From: Sean MacLennan @ 2008-01-02 17:47 UTC (permalink / raw)
  To: Misbah khan; +Cc: linuxppc-dev

Misbah khan wrote:
> Hi all ...
>
> i am writing a device driver in which the default configuration for LCD
> display i need to keep it in a .config file so that as the system boots it
> take the value from this file and does the initial configuration in the init
> of the driver. If user changes the .config file content in the next boot the
> LCD driver should take the new default configuration 
>
> There will also be a run time config which could be changed at the rum time
> but will not change the default configuration.
>
>
> i am writing a LCD driver for PPC arch i need to know that how should i
> creat a .config file and How should i use it my device driver. ??????
>
> If you had an exprience in this regard please do share with me ...
>
> ----Misbah <><
>   
You don't. The safe way is to have sane defaults in the driver. Then 
write a user mode app that reads the config file and configures the 
driver properly, probably through ioctls.

Cheers,
    Sean

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to creat a .config file for a driver and How to use it in adevice driver?????
  2008-01-02 17:47 ` How to creat a .config file for a driver and How to use it in adevice driver????? Sean MacLennan
@ 2008-01-03  4:40   ` Misbah khan
  0 siblings, 0 replies; 3+ messages in thread
From: Misbah khan @ 2008-01-03  4:40 UTC (permalink / raw)
  To: linuxppc-dev


Ya i got your point ...the way you told is the very generic way of doing this
but what i need is this :-

Like your any .config if you edit your configuration and restart your
default configuration changes ....The merit of this technique is that i need
not compile the driver with every default config change ....

---Misbah <><

Sean MacLennan-2 wrote:
> 
> Misbah khan wrote:
>> Hi all ...
>>
>> i am writing a device driver in which the default configuration for LCD
>> display i need to keep it in a .config file so that as the system boots
>> it
>> take the value from this file and does the initial configuration in the
>> init
>> of the driver. If user changes the .config file content in the next boot
>> the
>> LCD driver should take the new default configuration 
>>
>> There will also be a run time config which could be changed at the rum
>> time
>> but will not change the default configuration.
>>
>>
>> i am writing a LCD driver for PPC arch i need to know that how should i
>> creat a .config file and How should i use it my device driver. ??????
>>
>> If you had an exprience in this regard please do share with me ...
>>
>> ----Misbah <><
>>   
> You don't. The safe way is to have sane defaults in the driver. Then 
> write a user mode app that reads the config file and configures the 
> driver properly, probably through ioctls.
> 
> Cheers,
>     Sean
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-creat-a-.config-file-for-a-driver-and-How-to-use-it-in-a-device-driver------tp14576412p14591612.html
Sent from the linuxppc-dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-03  4:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-02 10:54 How to creat a .config file for a driver and How to use it in a device driver????? Misbah khan
2008-01-02 17:47 ` How to creat a .config file for a driver and How to use it in adevice driver????? Sean MacLennan
2008-01-03  4:40   ` Misbah khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).