#
3e15b01d |
| 22-Feb-2024 |
Warner Losh <imp@FreeBSD.org> |
libsa: Remove redundant sys/cdefs.h
Sponsored by: Netflix
|
#
cd6e526e |
| 20-Feb-2024 |
Justin Hibbits <jhibbits@FreeBSD.org> |
loader/libofw: Fix disk size truncation
At present OF_ioctl first multiplies, then casts to 64-bit, meaning at the asm level it truncates the result to 32-bit, then zero-extends it to 64-bit to retu
loader/libofw: Fix disk size truncation
At present OF_ioctl first multiplies, then casts to 64-bit, meaning at the asm level it truncates the result to 32-bit, then zero-extends it to 64-bit to return. Cast `n` to 64-bit before multiplying, so that the correct result is returned.
show more ...
|
Revision tags: release/14.0.0 |
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0 |
|
#
f9ce8da8 |
| 30-Nov-2022 |
Warner Losh <imp@FreeBSD.org> |
stand/ofw: Refactor ofw parsedev
Both ofw_disk and ofw_net use the same parsedev routine, except for the string passed in to match the ofw device node's type. Create a routine to do that and connect
stand/ofw: Refactor ofw parsedev
Both ofw_disk and ofw_net use the same parsedev routine, except for the string passed in to match the ofw device node's type. Create a routine to do that and connect these two users up to that.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D37560
show more ...
|
#
88a8c682 |
| 30-Nov-2022 |
Warner Losh <imp@FreeBSD.org> |
ofw/disk: Add parsedev support
Add a parsedev support for OpenFirmware disks. We must look at characteristics of the OFW node to know if we match this device (so supply a match routine) or not. Add
ofw/disk: Add parsedev support
Add a parsedev support for OpenFirmware disks. We must look at characteristics of the OFW node to know if we match this device (so supply a match routine) or not. Add a parsing routine to allocate devdesc for OpenFirmware disks as well.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D37558
show more ...
|
#
40d340ac |
| 30-Nov-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Implement ofw disk print routine
Have lsdev show openfirmware devices.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D37555
|
#
daaf594e |
| 30-Nov-2022 |
Warner Losh <imp@FreeBSD.org> |
stand/ofw: ofw_disk isn't really a disk
The rest of the code in the tree assumes that a DEVT_DISK uses a disk_devdesc to represent the device. However ofw_disk diesn't, so we can't use disk_fmtdev,
stand/ofw: ofw_disk isn't really a disk
The rest of the code in the tree assumes that a DEVT_DISK uses a disk_devdesc to represent the device. However ofw_disk diesn't, so we can't use disk_fmtdev, nor disk_parsedev. ofw needs to have a dv_match-like routine to use devpasrse, though, since we have two drivers (net and block) that claim the same sort of devices (eg /path/to/ofw-dev) based on the device-type property. In the interim, we can't use devmatch and ofw_disk's and the default net driver's parsing is offloaded ofw_parsedev.
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D37347
show more ...
|
#
8337ab69 |
| 30-Nov-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: For all disk drivers, connect dv_parsedev to disk_parsedev
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D37339
|
Revision tags: release/12.4.0 |
|
#
ad759c73 |
| 11-Aug-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Add disk_fmtdev for dv_fmtdev for all the disk devices
All of the archsw fmtdev functions treat DEVT_DISK as a call to disk_fmtdev. Set all disks' dv_fmtdev to disk_fmtdev so devformat will r
stand: Add disk_fmtdev for dv_fmtdev for all the disk devices
All of the archsw fmtdev functions treat DEVT_DISK as a call to disk_fmtdev. Set all disks' dv_fmtdev to disk_fmtdev so devformat will return the same thing.
Sponsored by: Netflix Reviewed by: tsoome (prior version) Differential Revision: https://reviews.freebsd.org/D35917
show more ...
|
#
e98f952c |
| 27-Jul-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Make sure nobody has a NULL pointer for dv_cleanup
dv_cleanup is specified almost everywhere. Use nullsys instead of NULL to indicate 'do nothing'. Also, be consistent in trailing commas that
stand: Make sure nobody has a NULL pointer for dv_cleanup
dv_cleanup is specified almost everywhere. Use nullsys instead of NULL to indicate 'do nothing'. Also, be consistent in trailing commas that were missing before.
Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D35913
show more ...
|
#
e72a01f1 |
| 24-Jul-2022 |
Warner Losh <imp@FreeBSD.org> |
stand: Use c99 structure initialization for ofw's block device
Use c99 structure init for devsw.
Sponsored by: Netflix
|
Revision tags: release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0 |
|
#
475008d6 |
| 02-Jan-2020 |
Brandon Bergren <bdragon@FreeBSD.org> |
Move stand/ofw/libofw to stand/libofw.
Since rS330365, there has been no particular reason for libofw to be in a subdirectory of ofw. Move libofw up a level to make it fit in better with the other t
Move stand/ofw/libofw to stand/libofw.
Since rS330365, there has been no particular reason for libofw to be in a subdirectory of ofw. Move libofw up a level to make it fit in better with the other top level libraries.
Also add a LIBOFWSRC to stand/defs.mk to match what all the other libraries are doing.
Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D23000
show more ...
|