Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307031
b: refs/heads/master
c: 2b13952
h: refs/heads/master
i:
  307029: b5a148f
  307027: ef7e99e
  307023: 3e55175
v: v3
  • Loading branch information
Eugeni Dodonov authored and Daniel Vetter committed Apr 9, 2012
1 parent 9d1571b commit 65711ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9eb3a75276892b01026489096c670a30bcc66252
refs/heads/master: 2b139522008b824ba17d5160085ce70f940839a0
10 changes: 10 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ enum plane {
};
#define plane_name(p) ((p) + 'A')

enum port {
PORT_A = 0,
PORT_B,
PORT_C,
PORT_D,
PORT_E,
I915_MAX_PORTS
};
#define port_name(p) ((p) + 'A')

#define I915_GEM_GPU_DOMAINS (~(I915_GEM_DOMAIN_CPU | I915_GEM_DOMAIN_GTT))

#define for_each_pipe(p) for ((p) = 0; (p) < dev_priv->num_pipe; (p)++)
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#define _PIPE(pipe, a, b) ((a) + (pipe)*((b)-(a)))

#define _PORT(port, a, b) ((a) + (port)*((b)-(a)))

/*
* The Bridge device's PCI config space has information about the
* fb aperture size and the amount of pre-reserved memory.
Expand Down

0 comments on commit 65711ac

Please sign in to comment.