aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/slicer.h
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2015-08-22 05:50:18 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2015-08-22 05:50:18 +0000
commit6aabc119b6e4a0310cd41b807b543ad495cc0dda (patch)
tree80d83f2737cf72f74148d576621482cfdacbea7a /sys/sys/slicer.h
parentc4f0631f19a17e8c00cfc6fd92241f27e6dfb818 (diff)
downloadsrc-6aabc119b6e4a0310cd41b807b543ad495cc0dda.tar.gz
src-6aabc119b6e4a0310cd41b807b543ad495cc0dda.zip
Create a RouterBoard platform and use it to create a flash map
Summary: The RouterBoard uses a predefined partition map which doesn't exist in the fdt. This change allows overriding the fdt slicer with a custom slicer, and uses this custom slicer to define the flash map on the RouterBoard RB800. D3305 converts the mpc85xx platform into a base class, so that systems based on the mpc85xx platform can add their own overrides. This change builds on D3305, and creates a RouterBoard (RB800) platform to initialize the slicer override. Reviewed By: nwhitehorn, imp Differential Revision: https://reviews.freebsd.org/D3345
Notes
Notes: svn path=/head/; revision=287013
Diffstat (limited to 'sys/sys/slicer.h')
-rw-r--r--sys/sys/slicer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/slicer.h b/sys/sys/slicer.h
index a41861e04557..9bf8748f2de0 100644
--- a/sys/sys/slicer.h
+++ b/sys/sys/slicer.h
@@ -45,7 +45,8 @@ struct flash_slice {
};
#ifdef _KERNEL
-int flash_fill_slices(device_t, struct flash_slice *, int *);
+int fdt_flash_fill_slices(device_t, struct flash_slice *, int *) __weak_symbol;
+void flash_register_slicer(int (*)(device_t, struct flash_slice *, int *));
#endif /* _KERNEL */
#endif /* _FLASH_SLICER_H_ */