aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nouveau_card.c
blob: 91f12f0d704a36cb90798e4f96a1d5fdd78cb9c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#include "nouveau_card.h"
#include "nouveau_reg.h"
#include "nouveau_drm.h"
#include "nouveau_card_list.h"


nouveau_card* nouveau_card_lookup(uint32_t device_id)
{
	int i;
	for(i=0;i<sizeof(nouveau_card_list)/sizeof(nouveau_card)-1;i++)
		if (nouveau_card_list[i].id==(device_id&0xffff))
			return &(nouveau_card_list[i]);
	return NULL;
}