Almost all of FreeBSD already refers to its native device structure as device_t. However, the underlying structure has the same name as linux's. This leads to bugs that the compiler can't catch when FreeBSD native drivers interface with linuxkpi based drivers and it makes it impossible to debug because only one struct device can be referred to when debugging core dumps. This patch renames FreeBSD's otherwise opaque struct device to struct device_ and fixes all of the straggling callers to use device_t.
The cxgbe iwarp code appears to be confused between the two device types.