summaryrefslogtreecommitdiffstats
path: root/include/driver.h
Commit message (Collapse)AuthorAgeFilesLines
* device: fix dev_nameJean-Christophe PLAGNIOL-VILLARD2010-09-201-5/+7
| | | | | | | | | | | | dev_name is supposed to return the name of the device plus the id currently we use %s%d format where in the kernel the use %s.%d we may think to switch to this format for the device name and keeping the %s%d for the devfs this will be usefull to not modify the clock device name as example Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* use resource_size_t for device resourcesJean-Christophe PLAGNIOL-VILLARD2010-08-271-3/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add partition mtd supportSascha Hauer2010-07-051-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rework device parametersSascha Hauer2010-06-171-1/+1
| | | | | | | | Change device parameters so that the memory management is in generic code. This also removes the need of storing statically initialized parameters as they are stored in a struct list_head for each device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* list: remove duplicated list.hSascha Hauer2009-11-031-1/+1
| | | | | | | | We accidently have two list implementations in the tree: include/list.h and include/linux/list.h. This patch moves the latter (newer one) to include/linux/list.h. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* driver: add dev_name inlineJean-Christophe PLAGNIOL-VILLARD2009-11-021-1/+6
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devfs: add open counterSascha Hauer2009-09-111-1/+2
| | | | | | | Add an open counter for device files so that we cannot accidently remove an opened device. This happened with bb devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* get rid of device idsSascha Hauer2009-07-211-3/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Get rid of remaining DEVICE_TYPE_* usageSascha Hauer2009-07-211-19/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce cdevSascha Hauer2009-07-211-31/+54
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* we need different bus typesSascha Hauer2009-04-071-1/+14
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fix dev_* macrosSascha Hauer2009-04-061-8/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Shutdown U-Boot before starting an OSSascha Hauer2009-03-191-1/+7
| | | | | | | | Some devices, especially the ones doing DMA should be disabled before giving control to an OS. We take the simple approach here: Just shutdown the devices in the reverse order they were activated. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Introduce dev_* and pr_* functionsSascha Hauer2008-10-311-0/+30
| | | | | | | | Proven to be useful in linux kernel, U-Boot should have such a thing aswell. We do not distinguish between the various print levels others than debug and not debug. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement memmap for mem driverSascha Hauer2008-08-141-0/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Partition: Add an own device id for partitionsSascha Hauer2008-08-141-1/+2
| | | | | | | | Add an own device id for partitions. This is necessary to allow the partition layer to check if the given device is really a partition. Also, check for readonly flag in erase. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* increase maximum driver name length to 32Sascha Hauer2008-08-141-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add new device types for NANDSascha Hauer2008-08-131-1/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* - introduce ioctl callSascha Hauer2008-06-061-0/+26
| | | | - pass open/close/lseek through to drivers
* doc added (what else)Juergen Beisert2007-10-191-2/+5
|
* Merge branch 'master' of jbe@octopus:/home/git/projects/u-boot-v2Juergen Beisert2007-10-191-8/+39
|\
| * fix compiler warningsascha2007-10-191-1/+1
| |
| * - Implement tree structure for devicessascha2007-10-191-7/+38
| | | | | | | | | | | | | | - Use device tree structure to implement partitions - Let devinfo print a nice tree - Introduce 'fixed' partitions which are not removable - Fix mount: It was not possible to mount on a relative path.
* | doc added onlyJuergen Beisert2007-10-191-16/+92
|/
* let erase and protect functions return int instead of size_t. TheySascha Hauer2007-10-111-3/+3
| | | | only return succes/error but no size.
* Use Linux kernel list for drivers and devices instead of handmadeSascha Hauer2007-10-111-2/+10
| | | | list.
* implement flash protectionSascha Hauer2007-07-161-0/+2
|
* implement memmap().Sascha Hauer2007-07-151-0/+5
| | | | | | With this function we can get a pointer to directly memory mapped devices like nor flash or RAM. Useful for bootm where we save one memcopy when the image is mappable
* whitespace cleanupSascha Hauer2007-07-151-20/+20
|
* svn_rev_575Sascha Hauer2007-07-051-1/+2
| | | | add DEVICE_TYPE_MIIPHY
* svn_rev_481Sascha Hauer2007-07-051-0/+1
| | | | make more char * const, fix compiler warnings
* svn_rev_469Sascha Hauer2007-07-051-8/+23
| | | | | - make some more char * const - dev_add_parameter -> dev_add_param
* svn_rev_387Sascha Hauer2007-07-051-1/+2
| | | | add console driver type
* svn_rev_366Sascha Hauer2007-07-051-1/+1
| | | | make pointer const
* svn_rev_319Sascha Hauer2007-07-051-10/+11
| | | | add some comments
* svn_rev_296Sascha Hauer2007-07-051-1/+1
|
* svn_rev_291Sascha Hauer2007-07-051-0/+1
| | | | add get_first_device() function
* svn_rev_273Sascha Hauer2007-07-051-2/+2
| | | | split up header files, make src pointer in write functions const
* svn_rev_270Sascha Hauer2007-07-051-2/+2
| | | | WIP FS support
* svn_rev_268Sascha Hauer2007-07-051-4/+5
| | | | WIP
* svn_rev_261Sascha Hauer2007-07-051-4/+8
| | | | WIP Filesystem support
* svn_rev_235Sascha Hauer2007-07-051-1/+6
| | | | beginning filesystem support
* svn_rev_231Sascha Hauer2007-07-051-38/+2
| | | | moved param related things to extra header file
* svn_rev_227Sascha Hauer2007-07-051-7/+27
| | | | fix parameter handling
* svn_rev_204Sascha Hauer2007-07-051-2/+3
|
* svn_rev_149Sascha Hauer2007-07-051-1/+3
| | | | no need for bi_dram in global data (untested)
* svn_rev_121Sascha Hauer2007-07-051-1/+20
| | | | implement device parameters
* svn_rev_120Sascha Hauer2007-07-051-0/+13
| | | | implement initcalls
* svn_rev_118Sascha Hauer2007-07-051-8/+19
| | | | thousands of things
* svn_rev_109Sascha Hauer2007-07-051-0/+52
do not know anymore