···15741574 dev->pdev->subsystem_device == sub_device;15751575}1576157615771577+/* returns 1 if device is one of the nv4x using the 0x4497 object class,15781578+ * helpful to determine a number of other hardware features15791579+ */15801580+static inline int15811581+nv44_graph_class(struct drm_device *dev)15821582+{15831583+ struct drm_nouveau_private *dev_priv = dev->dev_private;15841584+15851585+ if ((dev_priv->chipset & 0xf0) == 0x60)15861586+ return 1;15871587+15881588+ return !(0x0baf & (1 << (dev_priv->chipset & 0x0f)));15891589+}15901590+15771591/* memory type/access flags, do not match hardware values */15781592#define NV_MEM_ACCESS_RO 115791593#define NV_MEM_ACCESS_WO 2