Messages in this thread |  | | From | "Henning P. Schmiedehausen" <> | Subject | Re: [RFC] New Driver Model for 2.5 | Date | Fri, 19 Oct 2001 07:57:35 +0000 (UTC) |
| |
Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:
>>> struct device { >>> struct list_head bus_list; >>> struct io_bus *parent; >>> struct io_bus *subordinate; >>> >>> char name[DEVICE_NAME_SIZE]; >>> char bus_id[BUS_ID_SIZE]; >>> >>> struct dentry *dentry; >>> struct list_head files; >>> >>> struct semaphore lock; >>> >>> struct device_driver *driver; >>> void *driver_data; >>> void *platform_data; >>> >>> u32 current_state; >>> unsigned char *saved_state; >>> };
>Hi Patrick ! Nice to see this happening ;)
>I would add to the generic structure device, a "uuid" string field.
And a version field! Please add a version field right to the beginning. This would make supporting legacy drivers in later versions _much_ easier.
Ciao Henning
-- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer INTERMETA - Gesellschaft fuer Mehrwertdienste mbH hps@intermeta.de
Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de D-91054 Buckenhof Fax.: 09131 / 50654-20 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |