9
0
Fork 0
Commit Graph

74 Commits

Author SHA1 Message Date
Sascha Hauer 06a20b38f8 Add notifier framework
This is loosely based on the Linux notifier framework, but
stripped down to the bare minimum.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-13 16:00:11 +02:00
Sascha Hauer 90ef0ccd2c use bus remove function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer cbb773d5d6 driver: do not match for devices which already have a driver
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer e8884fac82 fix compiler warning
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer 4511a8873b we need different bus types
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 10:42:33 +02:00
Sascha Hauer 0255a6643a driver.c: set errno
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-06 11:16:45 +02:00
Sascha Hauer 0b5a776c1e Shutdown U-Boot before starting an OS
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>
2009-03-19 12:21:18 +01:00
Sascha Hauer c3fc1364d9 Introduce dev_* and pr_* functions
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>
2008-10-31 14:02:25 +01:00
Sascha Hauer bcb049a702 string: add typechecking for strchr, strrchr, strstr
These functions offered an excellent possibility to bypass compiler
type checking.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:54 +02:00
Sascha Hauer c0d02ffc3d Fix string_to_ip
Use a pointer to an ip address instead of the return value in string_to_ip
and use the return value for error indication only. 0.0.0.0 can be a valid
ip address

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 17:46:47 +02:00
Sascha Hauer ad3b376c3d parameter: set errno in dev_set_param
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 13:12:42 +02:00
Sascha Hauer 1d35082db5 parameter: make stringlen more readable
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-20 13:10:48 +02:00
Nishanth Menon 1252331f68 Driver: expose dummy_probe
expose Dummy Probe function so that modules can use it.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:50 +02:00
Nishanth Menon 5fc0e871d5 U-Boot-V2:Bitops: asm-generic bitops
This introduces selected generic bitop files from
kernel. We don't need minix, ext2, sched or lock
based bitops. Those have been dropped.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:49 +02:00
Sascha Hauer d8e2732a0a only compile devinfo command when selected
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:29:30 +02:00
Sascha Hauer f295acb556 lseek: return -1 for errors and check for that return value
We cannot check for < 0 in lseek, otherwise we get problems with files > 0x7fffffff

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-01 08:59:27 +02:00
Sascha Hauer ee6d36a540 - introduce ioctl call
- pass open/close/lseek through to drivers
2008-06-06 09:30:48 +02:00
Nishanth Menon 296ea53c68 008-fixloadb
[Patch 08/17] U-Boot-V2:Commands Unbreak loadb support

This patch provides support for loadb and loady and enables the broken feature

Signed-off-by: Nishanth Menon<x0nishan@ti.com>
2008-06-05 19:45:20 +02:00
Sascha Hauer 31b5112b73 [general] remove HAVE_CONFIG_H 2008-04-07 11:40:55 +02:00
Sascha Hauer 50cc8c5412 Subject: [PATCH] [general] Fixed constant strings in data section issue
For practical reasons I changed all string literals assumed to be constant
to reside in .rodata subsection at end of .text section.

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-04-04 14:45:04 +02:00
Sascha Hauer ecc241774a fix dirname if called with something like "/path" 2008-03-11 21:46:40 +01:00
Sascha Hauer 8f35e16333 add stringlist function. They can be used to build a list
of strings. For now mainly useful to print the resulting
list in columns which is used in tab completion and ls.
2008-03-11 21:38:22 +01:00
Sascha Hauer 38e5fc1735 add glob to Makefile 2008-03-09 23:15:22 +01:00
Sascha Hauer 187847b2b4 add globbing support 2008-03-09 22:35:38 +01:00
Sascha Hauer 2209ae02ba readline: Fix wrong screen reprinting. Try:
abcde<BACKSPACE><HOME><DEL>
2008-03-02 17:24:05 +01:00
Sascha Hauer 23d1cead89 readline: Fix a bug when tab completion is used in the middle
of the line.
2008-03-02 17:23:10 +01:00
Sascha Hauer df31bb46be implement TAB completion 2008-03-01 21:08:14 +01:00
Sascha Hauer ca558b9097 make dirname/basename behave more standard conform 2008-03-01 21:03:01 +01:00
Marc Kleine-Budde f94dae59d7 improved codingstyle
This patch improved the codingstyle

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:49 +01:00
Marc Kleine-Budde f0e65e3cf6 [sparse] use NULL for nullpointer
fixes:
lib/parameter.c:108:19: warning: Using plain integer as NULL pointer

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +01:00
Marc Kleine-Budde afe0eaee43 get_device_by_path now obeys cwd
With this patch get_device_by_path obeys the cwd, which allows a more
intuitive devinfo command.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-19 10:41:17 +01:00
Marc Kleine-Budde 1d7cb260d8 fixed doku renamed ip -> ipaddr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-12 12:29:09 +01:00
Juergen Beisert 8fe25ecf12 adding various doku 2007-11-08 12:01:52 +01:00
Juergen Beisert 30e09b83d5 shell info added 2007-10-19 21:35:46 +02:00
sascha 3c0323a650 export symbols get_device_by_path and dev_add_child 2007-10-19 13:13:17 +02:00
sascha 95db50e812 Fix documentation for addpart/delpart/devinfo. These commands
now take a device file, not a device id.
2007-10-19 11:23:24 +02:00
sascha 003370b63a compile fix 2007-10-19 11:06:03 +02:00
sascha 3b6d6a45e7 - Implement tree structure for devices
- 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.
2007-10-19 08:45:57 +02:00
Juergen Beisert 438873e769 remove putc references 2007-10-17 17:51:34 +02:00
sascha 10bdc84297 implement delete key in readline 2007-10-16 23:08:37 +02:00
Sascha Hauer 212f631eb4 let erase and protect functions return int instead of size_t. They
only return succes/error but no size.
2007-10-11 22:00:22 +02:00
Sascha Hauer 22c0e805ea replace 8 spaces with tabs 2007-10-11 20:56:18 +02:00
Sascha Hauer eadf71abc7 Use Linux kernel list for drivers and devices instead of handmade
list.
2007-10-11 20:20:36 +02:00
Sascha Hauer 0fca6b006c parse_area_spec():
- No need to handle strings where only size or end is given. This
  form is confusing and does not give real benefit.
- Fix start-end form. The calculation was wrong.
- Return an error if end < start.
- Add function description.
2007-10-09 12:56:20 +02:00
Sascha Hauer 2443c7a6f1 export symbols 2007-10-07 14:27:24 +02:00
Sascha Hauer 17c3e64578 export functions 2007-10-04 12:37:06 +02:00
Sascha Hauer 5017152f13 export functions 2007-10-04 12:33:20 +02:00
Sascha Hauer aaa71a1263 Export symbols printf and the ones needed for getopt 2007-10-01 10:26:45 +02:00
Sascha Hauer 5931ed5a14 add safe_strncpy() function 2007-09-28 10:45:59 +02:00
Sascha Hauer b3dc734018 declare lots of functions static 2007-09-28 10:07:26 +02:00