????????????????
????1. ??????(Platform bus)??linux2.6????????????????????????????????????????????豸???????????????????????????????????
????2.
???????????豸
????1. ???豸???structplatform_device??????:
????struct platform_device
????{
????const char *name; /*?豸??*/
????intid;  /*?豸????????豸?????*/
????struct device dev;
????u32 num_resources;
????struct resource*resource;  /*?豸???*/
????}
????struct resource
????{
????resource_size_t start;
????resource_size_t end;
????const char *name;
????unsigned long flags;   /*?????????*/
????struct resource *parent?? *sibling?? *child;
????};
????2. ??????豸
????int platform_device_register(struct platform_device*pdev)
??????????????
????1. ?????????structplatform_driver??????
????struct platform_driver
????{
????int(*probe)(struct platform_device*);
????int(*remove)(struct platform_device*);
????……
????}
????2. ????????????
????int platform_driver_register(struct platform_driver*)